/VerHor

An AI based game. Uses min max pruning algorithm to detect the turn of the computer.

Primary LanguagePython

VerHor

An AI-based game. Uses min max pruning algorithm to detect the turn of the computer.

Used Programming Language: Python

There are 2 mode of playing: 1) Play with 2 players and 2) Play with AI

The game starts with a toss. The winner of the toss has the right to turn first. The player who is unable to place a move/turn loses the game.

If a player got vertical in toss then he can fill up vertical cells and horizontal cell is he got horizontal in the toss.

The min-max algorithm here determines the optimum path to win the game.

There is also a random turn. Any player can take the help of AI to place the best possible turn in any situation which is possible for the AI algorithm used here.

Command to play the game: verhor_game_gui.py row col Place this command in the CMD to the file containing the directory.

The UI is given below:

image