Skip to content

Well known Tic Tac Toe game with three levels of AI (easy, medium and unbeatable - hard)

Notifications You must be signed in to change notification settings

sieczkah/Tic-Tac-Toe-with-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe game with AI bots.

A Tic Tac Toe game script with command line UI.

To start the program run main.py.

User interface commands are:

  • start player_type player_type - starts the game with defined palyers

  • exit - exits the game

Available player's types are:

  • user - a human player
  • easy - an easy AI bot that picks a random move
  • medium - a medium AI bot that will make finishing/ blocking move if available
  • hard - an unbeatable hard AI bot that evaluates every move based on minimax algorithm

The program uses a Backtracking minimax algorithm for hard AI bot that evaluates every move and performs the most efficient one. The hard bot is unbeatable.

About

Well known Tic Tac Toe game with three levels of AI (easy, medium and unbeatable - hard)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages