Skip to content

jdevalk2/tictacpython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Experimental Tic Tac Toe game implementation that runs on the console and using a simple decision tree to make informed decisions for the computer "AI".

Developed with Python 3.10 but should work fine on older versions.

How to play:

  • Run main.py as entrypoint
  • The playfield is 3 by 3 and X can be put using coordinates 0,1,2 for X and the same 0,1,2 for Y
  • Computer will then take a turn
  • Repeat.. until stalemate or win situation is reached
  • Game ends
====
 -  -  -
 -  -  -
 -  -  -
====
Your next move X,Y? [0-2],[0-2] or QUIT
1,1
====
 -  -  -
 -  X  -
 -  -  -
====
Computer is thinking ...
====
 -  -  O
 -  X  -
 -  -  -
====
Your next move X,Y? [0-2],[0-2] or QUIT

About

Somewhat smart python tic tac toe game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages