Skip to content

Tic-tac-toe is a game in which two players take turns in drawing either an ' O' or an ' X' in one square of a grid consisting of nine squares. The winner is the first player to get three squares of the same symbols in a row, column or diagonal. This C++ Code uses the MiniMax Algorithm to play as computer opponent.

Notifications You must be signed in to change notification settings

AmanSinghBhogal/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Error 404

Tic Tac Toe

About Tic Tac Toe:

Tic-tac-toe is a game in which two players take turns in drawing either an ' O' or an ' X' in one square of a grid consisting of nine squares. The winner is the first player to get three squares of the same symbols in a row, column or diagonal. This C++ Code uses the MiniMax Algorithm to play as computer opponent.

Screen Shots:

S1 S2 S3 S4 S4 S4 S4 S4 S4 S4 S4

Steps to Run on Local Machine


Note: You need to have C++ compiler installed in your local Machine for Successfully running the code. Install MinGW

Step 1) Clone AmanSinghBhogal/Tic-Tac-Toe.
Step 2) Open Tic-Tac-Toe cloned Directory in Command Prompt and run the following command:
g++ Tic_Tac_Toe.cpp -o Tic_Tac_Toe

Step 3) Next, Run the following Command (it will execute the previously compiled file):

Tic_Tac_Toe.exe

Thank You


About

Tic-tac-toe is a game in which two players take turns in drawing either an ' O' or an ' X' in one square of a grid consisting of nine squares. The winner is the first player to get three squares of the same symbols in a row, column or diagonal. This C++ Code uses the MiniMax Algorithm to play as computer opponent.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages