Skip to content

a manifestation of Minimax algorithm over a classic tic-tac-toe game

License

Notifications You must be signed in to change notification settings

ankitrai96/tic-tac-toe

Repository files navigation

PicPacPoe

app Icon

a manifestation of Minimax algorithm over a classic tic-tac-toe game

Modules

this project has and is developed in three modules as follow:

1. Duo Mode

void of artificial intelligence. Rather, both the characters of game, i.e. Poop 💩 and Ghost 👻 (similar to classic tokens X and O), are controlled manually by player(s)

Duo mode Gameplay

2. Easy Mode

this mode is powered by a relatively easy artificial intelligence game engine which randomly decides moves of 👻 out of available spots (referred as Cells in source code)

Easy mode Gameplay

3. Pro Mode

this is where the game engine utilizes miniMax algorithm. It is impossible for you 💩 to defeat 👻 in this mode!

Pro mode Gameplay

Source Code Directory

apart from the initial react-native directory structure, "src" is root of rest of the source code of this repository which contains react components such as GameEngine, Cell, AppGrid, et cetera.