Skip to content

anshuman-jindal/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Tic Tac Toe

What is Tic Tac Toe?

This is a game played on a 3x3 matrix, where 2 players put 'X' and 'O' in an alternating fashion. The player to secure 3 consecutive squares (any row, column or diagonal) as their symbol wins immediately. If all 9 squares are occupied and no one has 3 consecutive squares, the game is tied.

Instructions for playing the game through the C++ file

Download the C++ file. Open the folder containing the file on terminal and run the following commands:

To create the executable file called TTT:

g++ TicTacToe.cpp -o TTT

To run the executable file:

./TTT

Or, after creating the TTT exectuable file, double click on its icon to run it

Enjoy the game!

About

C++ implementation of the two player game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages