My implementation of the Tic-Tac-Toe project for The Odin Project. Try it here!
This Tic-Tac-Toe game is designed to be played by two players in the web browser. The player with marker "X" goes first, with the players alternating turns. The game ends when one player wins by placing 3 markers in a row or there is a tie because all of the squares are filled but there is no 3 in a row.
- Player turn announcement
- Game over announcement (win or tie)
- Restart button
- Generate new objects using factory functions
- Avoid polluting the global namespace by encapsulating using the module pattern (IIFEs)
- Use closures to create private variables