Skip to content

Othello Game (Also known as Reversi). It was created with the Minimax algorithm (Alpha-Beta pruning). Allows Human-AI, AI-AI, RandomPlayer-AI, RandomPlayer-Human interplay

License

Notifications You must be signed in to change notification settings

efecanxrd/Othello-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Othello Game

EfecanLogo

Othello Game (Also known as Reversi) It was created with the Minimax algorithm (Alpha-Beta pruning).

This game allows Human-AI, AI-AI, RandomPlayer-AI, RandomPlayer-Human interplay

XhW

Setup This Project

Install Python3x

  • I recommend that you install Python3.8x

Install Libraries

  • 1 external library was used in the project. You can install the module by typing in the terminal :
pip install func-timeout

Start the game!

python main.py

How this is working?

This is an othello game project using the minimax algorithm (with alpha-beta pruning). Code comments were entered as # comments on each line. In the game I developed, Random Player can play against Human(You), Human(You) against ai, ai aganist ai, randomplayer aganist ai.

  • ai.py: File with AI's algorithm
  • board.py The file from which the board you see in the console is made
  • game.py: The file containing the general gameplay and rule blocks of the game
  • human.py: The human game algorithm. It takes input from you etc.
  • main.py: The main file. Everything comes together here. You have to run this file to start the game
  • player.py: Motion functions etc.
  • RandomPlayer.py: Algorithm for random motion play

💖 Don't forget to star!