Skip to content

Sharvin26/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

TicTacToe Game

This is a tictactoe game built using python3.7. It's a terminal based application.

Prerequistes:

  • Python 3.7 required.
  • It requires a colorama package.

Installing package:

pip install -r requirements.txt

To run the game use command:

python3.7 tictactoe.py

Game Example:

➜ python3.7 tictactoe.py
Enter the size of tictactoe game you wanna play? 3
   0  1  2
0          
1          
2          
Current player: 1
What column do you want to play? ( eg: 0, 1, 2 ): 0
What row do you want to play? ( eg: 0, 1, 2 ): 0
   0  1  2
0  X       
1          
2          
Current player: 2
What column do you want to play? ( eg: 0, 1, 2 ): 1
What row do you want to play? ( eg: 0, 1, 2 ): 0
   0  1  2
0  X  O    
1          
2          
Current player: 1
What column do you want to play? ( eg: 0, 1, 2 ): 1
What row do you want to play? ( eg: 0, 1, 2 ): 1
   0  1  2
0  X  O    
1     X    
2          
Current player: 2
What column do you want to play? ( eg: 0, 1, 2 ): 2
What row do you want to play? ( eg: 0, 1, 2 ): 0
   0  1  2
0  X  O  O 
1     X    
2          
Current player: 1
What column do you want to play? ( eg: 0, 1, 2 ): 2
What row do you want to play? ( eg: 0, 1, 2 ): 2
   0  1  2
0  X  O  O 
1     X    
2        X 
Player 1 is the winner diagonally ( \ )!!
Game is over, would you like to play again?? ( y/n ): n
GoodBye....

About

A Simple tictactoe game built using python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages