/TicTacToeProject

Just a simple Tic Tac Toe with theme changer button

Primary LanguageCSS

Tic Tac Toe Game

Overview

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.

Features

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

How to Play

  1. Clone this repository to your local machine using git clone git@github.com:PierreGAMEN/TicTacToeProject.git.
  2. Navigate to the project directory: ``.
  3. Run the game by executing Go live in your VS Code.
  4. Follow the on-screen instructions to play the game.
  5. Enjoy playing Tic Tac Toe against a friend!

Here a small preview

Tic Tac Toe neon mode Tic Tac Toe spooky mode