Welcome to the Tic-Tac-Toe Game! ๐ This simple console-based game allows two players to engage in the classic tic-tac-toe challenge. The game keeps track of each player's score and announces the winner or declares a draw after each round.
- The game starts by prompting the players to enter their names.
- The tic-tac-toe board is displayed, and Player 1 (X) begins the game.
- Players take turns entering a number (1 to 9) to place their symbol on the board.
- The game checks for a winner or a draw after each move.
- The winner or draw is announced, and players have the option to play again.
- Use the numbers 1 to 9 to place your symbol on the corresponding position on the board.
- Follow on-screen instructions during your turn. ๐ฒ
- The first player to form a horizontal, vertical, or diagonal line with their symbol wins.
- The game ends in a draw if no player achieves victory.
-
Step 1: Clone the Repository
Open your terminal and run the following command to clone the repository:
git clone https://github.com/B3TA-BLOCKER/Tic-Tac-Toe-Game.git
-
Step 2: Navigate to the Project folder
cd Tic-Tac-Toe-Game
-
Step 3: Compile the Source Code
g++ main.cpp -o main
-
Step 4: Execute the program
./main