This Tic-Tac-Toe project is a web-based game developed as part of The Odin Project's JavaScript course. It serves as a practical application to demonstrate the use of factory functions and modules, emphasizing encapsulation to create a more secure and organized code structure.
- Player Selection: Players can choose 'X' or 'O' to represent themselves.
- Gameplay: Players take turns placing their chosen symbol ('X' or 'O') on a 3x3 grid.
- Win Detection: The game automatically detects winning conditions for rows, columns, and diagonals.
- Draw Detection: The game detects a draw when the grid is fully occupied without a winner.
- Restart: Players can restart the game at any time to start a new match.
This project is built using the following technologies:
- HTML
- CSS
- JavaScript
-
Visit the Tic-Tac-Toe Website.
-
Select your player symbol ('X' or 'O').
-
Click on the grid cells to make your move and take turns with the other player.
-
The game will automatically detect if someone has won or if it's a draw.
-
You can restart the game at any time by clicking the "Restart" button.
Enjoy playing this classic game of Tic-Tac-Toe!
This project was developed as part of The Odin Project's Foundations course, which aims to teach web development concepts through hands-on projects.
For more information, visit The Odin Project.
Please note that the project is still in development, with additional features and improvements to come.