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
- Host: GitHub
- URL: https://github.com/efecanxrd/othello-game
- Owner: efecanxrd
- License: mit
- Created: 2022-05-14T15:15:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-14T16:00:56.000Z (almost 4 years ago)
- Last Synced: 2025-01-15T11:49:58.631Z (about 1 year ago)
- Topics: 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
- Language: Python
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Othello Game

### 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

## 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!