An open API service indexing awesome lists of open source software.

https://github.com/efecanxrd/othello-game

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
https://github.com/efecanxrd/othello-game

alpha-beta alpha-beta-algorithm alpha-beta-pruning alpha-beta-search alphabeta-minimax-search minimax minimax-agent minimax-algorithm minimax-alpha-beta-pruning minimax-search othello othello-ai othello-game othello-with-ai reversi reversi-ai reversi-game

Last synced: 12 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# Othello Game
![EfecanLogo](https://avatars.githubusercontent.com/u/66366306?s=100&u=dc5e6f5b4a05d07958d9a867b803760aa2b1613e&v=4)
### 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](https://i.imgur.com/qHAcfhX.gif)
## 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 :
```shell
pip install func-timeout
```
### Start the game!
```shell
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!