Skip to content

An unbeatable tic-tac-toe game developed with Tkinter and the Minimax algorithm

Notifications You must be signed in to change notification settings

miaisakovic/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unbeatable Tic-tac-toe

A tic-tac-toe game developed with Tkinter and the Minimax algorithm.

Table of Contents

Setup

For Linux

If Python has not been previously installed, run the following:

$ sudo apt install python3.9
$ python3.9 --version

For MacOS

If Homebrew has not been previously installed, follow the instructions listed here.

If Python has not been previously installed, run the following:

$ brew install python@3.9
$ python3.9 --version

After Installing Initial Requirements

Clone this repository:

$ git clone https://github.com/miaisakovic/tic-tac-toe.git

When asked to enter credentials, input your username and personal access token.

How to Play

In this game, there are two players: player X (AI) and player O (you). The players alternate taking turns placing an X or O respectively in a three-by-three grid. The goal is to place three Xs or Os in a horizontal, vertical, or diagonal row. If all nine squares are filled and no players have won, there is a tie.

Each time you would like to play tic-tac-toe, run the following command:

$ python3.9 <relative path to main.py>

About

An unbeatable tic-tac-toe game developed with Tkinter and the Minimax algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages