A simple implementation of the Omok (Five in a Row) game in C.
This project implements the classic Omok game, also known as Gomoku or Five in a Row. The game is played on a grid where two players take turns placing their stones, aiming to get five in a row horizontally, vertically, or diagonally.
- Console-based interface
- 15x15 game board
- Two-player gameplay
- Win detection in all directions
- C compiler (e.g., GCC, Clang, or MSVC)
- Clone the repository:
git clone https://github.com/coding-pelican/omok-c.git
- Navigate to the project directory:
cd omok-c
- Compile the source code:
clang main.c omok.c -o omok
- Run the game:
./omok
Players take turns placing their stones on the board. The first player to get five stones in a row wins the game.
The project consists of the following files:
main.c
: Entry point of the programomok.c
: Main game logic implementationomok.h
: Header file with function declarations and constantsREADME.md
: This readme file providing an overview of the project
- Add AI opponent
- Implement game saving/loading
- Enhance user interface
This project is released under the MIT License. See the LICENSE file for more details.
Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.
For any questions or inquiries, please contact the project author:
- Name: Gyeongtae Kim
- Email: [email protected]
Enjoy playing Omok!