Skip to content

G-Roid/fish-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fish Tac Toe| Visit here!

tic tac toe with a twist



How It's Made:

Tech used: HTML, CSS, and JavaScript This project which focuses on separations of concerns. The HTML, CSS and JS are contain within individual files to ensure the game is maintainable. Initially, the smaller component objects were tested individually and then combined into a single Game object. Lastly, the game was linked to a UI by including event listeners onto each grid element.

Techs used:


       

Optimizations

The game could be optimized by including a timer feature. If a player turn exceeds a specific amount time, a default move could be played. Addionally, the game state could be saved by using local storage.

Lessons Learned:

This project allowed me put into practice the four pillars of OOP. Each class was encapsulated and the overall game problem was abstracted into smaller classes. The tic tac toe game featured the following core classes.

  • Game class
  • WinCheck class
  • grid class