Skip to content

vndlgd/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe

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.

ezgif com-video-to-gif (2)

Features

  • 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.

Technologies Used

This project is built using the following technologies:

  • HTML
  • CSS
  • JavaScript

Usage

  1. Visit the Tic-Tac-Toe Website.

  2. Select your player symbol ('X' or 'O').

  3. Click on the grid cells to make your move and take turns with the other player.

  4. The game will automatically detect if someone has won or if it's a draw.

  5. You can restart the game at any time by clicking the "Restart" button.

Enjoy playing this classic game of Tic-Tac-Toe!

Acknowledgments

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.

Releases

No releases published

Packages

No packages published