Skip to content

Aksh29-tech/Tic_Tac_Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game

Welcome to the classic Tic-Tac-Toe game built in C++ This game allows you to play against the computer or against another player. It uses the minimax algorithm to determine the best move for the computer when playing.

Features

  • Single Player Mode: Play against the computer with the AI making the best possible moves.
  • Two Player Mode: Play against a friend in a local two-player mode.
  • Intuitive Interface: The game provides a simple command-line interface that clearly shows the current state of the board and instructions for gameplay.
  • Minimax Algorithm: The computer uses a decision-making algorithm to determine the best move in each turn.
  • Customizable: You can choose to either play first or let the computer go first.

How to Play

  • The game presents a board numbered from 1 to 9 as shown below:
         1 | 2 | 3 
        -----------
         4 | 5 | 6
        -----------
         7 | 8 | 9
    
  • You will be asked to choose whether you want to play first or let the computer start.
  • If you play first, you will be assigned the X marker, and the computer will be assigned O.
  • If you let the computer start, it will make the first move, and you'll be assigned X.
  • The game continues until one player wins, or it’s a draw. The board will display after every move.

Game Modes

  • Human vs Computer: You can play as the human and the computer will take turns with you. The computer uses the minimax algorithm to choose its moves.
  • Human vs Human: Two players can play this game on the same device, taking turns to play.

About

It's game where you are playing against computer

Topics

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages