This is a very basic implementation of Tic Tac Toe on a website. It currently has the capability of playing Tic Tac Toe against a local opponent. Some fun things that have been added like a crown around the winner and score tracking. This big focus I had while doing this project was using as few global variables as possible. This was done using the module pattern and factories. There are future features that are still to be added in the future, but is considered MVP complete.
git clone [email protected]:KojinKuro/tic-tac-toe.git
cd tic-tac-toe
open index.html
- Play tic tac toe
- Can change your symbol
- Keeps track of your score
- Will scale to different screen sizes
This project took around 25 hours to complete.
While working on this project, I tried to use a few global variables as possible. I did this using factories and module patterns. Something that I focused on was keeping the code clean and refactoring as I went on for readability. As the code got larger, it became more important that code was well thought out. Some of the things I feel proud about doing in the project was following the git workflow, writing better commits, and experimenting more with CSS.
- Make it so you cannot have the same symbol as another player
- Add AI to the game
- Random input AI
- Advanced AI based on some kind of online code
- Sound on and off button
- Save and load the whether or not the user muted the program
- Player vs Player or Player vs Computer selection
- Code done by Charles Kwang
- Sound files sourced from mixkit