Skip to content

Minimax and Negamax algorithm for TicTacToe resolution

Notifications You must be signed in to change notification settings

remisansfamine/minimax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiniMax - C#

ISART DIGITAL : School Project - GP3 - Rémi GINER

About The Project

Built with Unity 2021.3.5f1

The goal of the project is to code several algorithms capable of solving a given tic-tac-toe game. The program must implement the MiniMax algorithm, the NegaMax simplification and the Alpha-Beta pruning extension to reduce the number of recursive calls.

Features & usage

Features

  • MiniMax algorithm
  • NegaMax algorithm
  • Alpha-beta pruning for MiniMax
  • Alpha-beta pruning for NegaMax

Controls

The controls are made for keyboard only:

  • 1-4 - Select an algorithm
  • 0-3 - Select a line or a column

How to launch

Launch the exe directly from the archive.

Details

Algorithms iteration benchmark

MiniMax

MiniMax - Worst case: 34313 | Best case: 29633

NegaMax

NegaMax - Worst case: 34313 | Best case: 29633

MiniMaxAB

MiniMaxAB - Worst case: 1717 (~20000% iteration decrease) | Best case: 1343 (~22000% iteration decrease)

NegaMaxAB

NegaMaxAB - Worst case: 1717 (~20000% iteration decrease) | Best case: 1343 (~22000% iteration decrease)

References:

Versionning

Git Lab for the versioning.

Author

Rémi GINER

About

Minimax and Negamax algorithm for TicTacToe resolution

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages