Skip to content

A command line Tic-Tac-Toe game with AI βŒβ­•πŸ€–

License

Notifications You must be signed in to change notification settings

KareemMAX/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TicTacToe

A command line Tic-Tac-Toe game with AI.

About

This Tic-Tac-Toe AI was made as a challenge with my friends to make the best one. This version was implemented with my knowledge without resorting to any Tic-Tac-Toe pre-made AI algorithm or even google searching so it might be quiet rough but I tried my best 😁.

It should win most games.

Usage

  1. You can download the source code from the download code button from above, or you can clone the code through git.

  2. If Python was not downloaded download it from here.

  3. Open a command prompt or terminal where the project folder is downloaded, for windows you can follow these instructions.

  4. Run this command to open the game.py file

    python game.py
  5. Now you can play the game, the output will be like this:

    Screenshot 1

    You can play by writing the location you want to play in as demonstrated in the screenshot above

  6. Have FUN πŸŽ‰πŸŽˆ