Skip to content

scottwright-dev/odin-project-tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

tic tac toe game

Click here for demo

Description

The objective of this project is to showcase the principles of modular and object-oriented programming using JavaScript. Using the classic Tic Tac Toe game format, the emphasis was to minimise the use of global code and organise the game functionality within object modules and factory functions.

The first iteration of the game was developed to be playable exclusively in the console, the purpose of this approach was to first validate the logic of the game without relying on a user interface. This logic was then incorporated into the final browser playable UI version.

Technologies Used:

  • JavaScript
  • HTML
  • CSS

What I Learned

  • JavaScript object modules
  • Factory functions
  • IIFE's
  • Encapsulation
  • Atomic git commits

Thoughts and Observations

Through this project, I gained valuable insights into the benefits of using modular code and object-oriented programming in JavaScript. By adopting a modular approach, I was able to create more secure, reusable code that is easier to maintain and understand. During this development process, I adopted the Atomic Git Commits strategy to emphasise this approach further. Where I tried as much as possible to limit the scope of each commit to a single logical change.

Additional Feature Ideas

  • Implement AI player.
  • Enhance UI feedback so winning squares are highlighted on the board following winning moves.
  • Add the ability to customise player names via user input.

Credits

About

Tic tic toe game project from TOP curriculum

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published