Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 days 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 (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-16T23:02:54.000Z (5 months ago)
- Last Synced: 2024-07-17T02:58:16.189Z (5 months ago)
- Topics: ai-game, c, glut, opengl
- Language: C
- Homepage:
- Size: 1.77 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AI for Othello Game
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/Viet281101/OthelloAI) ![Github language count](https://img.shields.io/github/languages/count/Viet281101/OthelloAI) ![GitHub Created At](https://img.shields.io/github/created-at/Viet281101/OthelloAI)
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:
[![alt text](othello_start.png)](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
```