This repository contains a simple implementation of the classic Tic Tac Toe game in JS. The game allows two players to take turns marking spaces on a 3x3 grid, with the objective of getting three of their symbols in a row, column, or diagonal.
- Simple Gameplay: Players take turns marking empty spaces on the grid.
- Win Detection: The game automatically detects when a player has won by getting three of their symbols in a row, column, or diagonal.
- Draw Detection: If all spaces on the grid are filled without a winner, the game is declared a draw.
- Input Validation: The program validates user input to ensure that players can only select valid moves.
- Turn Switching: The game alternates between the two players' turns until the game is won or drawn.
- Clone this repository to your local machine using
git clone git@github.com:PierreGAMEN/TicTacToeProject.git
. - Navigate to the project directory: ``.
- Run the game by executing
Go live
in your VS Code. - Follow the on-screen instructions to play the game.
- Enjoy playing Tic Tac Toe against a friend!