# gomoku **Repository Path**: ShenMian/gomoku ## Basic Information - **Project Name**: gomoku - **Description**: 一个简单的五子棋, 支持局域网联机. (GitHub 镜像) - **Primary Language**: C++ - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: https://github.com/ShenMian/gomoku - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-04-30 - **Last Updated**: 2025-11-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Gomoku [![CodeFactor](https://www.codefactor.io/repository/github/shenmian/gomoku/badge)](https://www.codefactor.io/repository/github/shenmian/gomoku) A simple gomoku, using [SFML] framework, supports mouse/keyboard and controller input, and offers both offline and LAN multiplayer modes.

## Rules The rules are **free-style** and there are no forbidden moves. Players can decide the order of play in each round. ## Modes - **Online**: One player serves as the host while the other joins as a client, allowing games to be played over a local network. - **Offline**: Two players take turns playing the game locally. ## Keymap ### Keyboard | Key | Action | | ------------------------------------------ | --------------- | | `Space` | Place piece | | `Backspace` | Undo | | `W`/`A`/`S`/`D`/`Up`/`Down`/`Left`/`Right` | Move the cursor | ### Controller | Key | Action | | ------------ | --------------- | | `A`/`Cross` | Place piece | | `B`/`Circle` | Undo | | D-pad | Move the cursor | [SFML]: https://github.com/SFML/SFML