Skip to content

SlienCode/Reversi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reversi

In this Artificial Intelligence assignment we had to implement the game known as Reversi (read about the game by clicking here), a game board for it and an AI that uses the MiniMax algorithm in order to predict the next best possible move and play the game against a human player. The user can choose if they want to go first (in which case they'll play using the black pawns) or second (white pawns). The user can also choose the depth the algorithm searches at, in order to increase the difficulty of the game. More specifically:

  • depth = 2 is easy mode
  • depth = 4 is medium mode
  • depth = 6 is hard mode

Any other depth might cause long waiting times as the AI searches further deep into the tree in order to find the best possible move.

How To Play:

  1. Create a new folder containing all of the java files.
  2. Compile and run Main.java
  3. Enter the desired depth.
  4. Choose if you want to play first or not.
  5. Win, if you can...

About

Reversi against a MiniMax AI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages