https://github.com/viet281101/othelloai
This is a small project to create AI for Othello using C with openGL GLUT. Othello is a strategy board game for two players (Black and White), played on an 8 by 8 board. The game traditionally begins with four discs placed in the middle of the board.
https://github.com/viet281101/othelloai
ai-game c glut opengl
Last synced: 3 months ago
JSON representation
This is a small project to create AI for Othello using C with openGL GLUT. Othello is a strategy board game for two players (Black and White), played on an 8 by 8 board. The game traditionally begins with four discs placed in the middle of the board.
- Host: GitHub
- URL: https://github.com/viet281101/othelloai
- Owner: Viet281101
- Created: 2023-11-27T16:32:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T23:02:54.000Z (about 2 years ago)
- Last Synced: 2025-04-07T17:19:26.008Z (over 1 year ago)
- Topics: ai-game, c, glut, opengl
- Language: C
- Homepage:
- Size: 1.77 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AI for Othello Game
  
An Othello game with AI using C language and [OpenGL](https://github.com/McNopper/OpenGL) GLUT. There are 2 game modes: playing with a human and playing with artificial intelligence.
To learn how to play Othello, click on the following image:
[](https://www.eothello.com/)
## Compilation
### Prerequisites:
- Install Make with the command:
```bash
sudo apt-get install make
```
- And install [GLUT](https://github.com/FreeGLUTProject/freeglut):
```bash
sudo apt-get install freeglut3 freeglut3-dev
```
or
```bash
sudo apt-get install libglut3-dev
```
- Clone the project from [my GitHub](https://github.com/Viet281101/OthelloAI) to your computer:
```bash
git clone https://github.com/Viet281101/OthelloAI.git
```
### To compile the game:
- Go to the project directory "AI_Player" or "Human_Player"
```bash
cd Human_Player/
```
or
```bash
cd AI_Player/
```
- Compile with the Makefile:
```bash
make
```
## Launch:
- Run the **othello** file
```bash
./othello
```
## Clean:
- Clean the files with make:
```bash
make clean
```