Skip to content

A Tic-Tac-Toe is a 2 player game, who take turns marking the spaces in a 3x3 grid.The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.

Notifications You must be signed in to change notification settings

himanshukale02/Tic-Tac-Toe-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Tic-Tac-Toe Using MiniMax Algorithm

A Tic-Tac-Toe is a 2 player game, who take turns marking the spaces in a 3x3 grid.The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.

TicTacToe.py is the python implementation of the game. There is only one modes to play: Single Player (Against Computer)

The single player mode uses MiniMax algorithm to make the computer unbeatable. Even if the player plays the most optimal move everytime, the end result would be atmost a draw. The gameplay of Single Player mode is show below.Every time you make a move, the computer plays automatically. tictactoe

About

A Tic-Tac-Toe is a 2 player game, who take turns marking the spaces in a 3x3 grid.The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages