Skip to content

tanczost/tic-tac-toe-with-minimax-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Tic-tac-toe with Minimax algorithm

About

Tic-tac-toe is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.

Minimax algorithm

This algorithm is used in decision making and game theory. It is widely used in two player turn-based games such as Tic-Tac-Toe.

Game

Start the game

start playerX playerO

potential players: user, easy, medium, hard

Exit the game

exit

Game table

First coordinate - from left to right

Second coordinate - from bottom to top

(1, 3) (2, 3) (3, 3)
(1, 2) (2, 2) (3, 2)
(1, 1) (2, 1) (3, 1)

Screenshot

screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages