Gomoku is an abstract strategy board game, also called Gobang or Five in a Row. It is traditionally played with Go pieces (black and white stones) on a go board with 19x19 (15x15) intersections; however, because pieces are not moved or removed from the board, gomoku may also be played as a paper and pencil game. This game is known in several countries under different names.
More information about Gomoku, see Gomoku - Wikipedia
In our game, two players take turns as black to move first. There are six rounds in total and each player moves first (as black) for three times.
Visit GomokuJudge to take part in our competition!
Login in via your JAccount and submit your code altered from the file main.c we provided.
The max size of Source code and Compiled exe are both 1MB.
There are some warnings:
- Do not copy others' source code. All the code you submitted will be checked for plagiarism. Copycats will fail this project!
- Do not share your source code with others. Similar submissions will be treated as plagiarism.
- Do not use alternative account to submit your code, otherwise you will be recognized as a copycat.
- Do not abuse our cloud execution service, such as intentionally trying to shutdown our judge machine.
(WIP)
Dependencies:
- Node.js
- MongoDB
- Redis
- rabbitMQ
Install dependencies on Debien/Ubuntu
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
$ nvm install 9 && nvm use 9
$ sudo apt-get install mongodb redis-server rabbitmq-server
If you are in Mainland China, it's recommended to use registry by taobao
(or use cnpm
)
$ npm config set registry https://registry.npm.taobao.org
Run the following command to create configuration scripts for both debug and in-production deployments:
$ touch config.debug.yaml
$ touch config.production.yaml
Edit the configuration according to the comments given. Then, excecute the following command to build the package:
$ npm install -g npminstall
$ npminstall
$ npm run build:server
$ npm run build:ui
Finally, run
$ npm run start
to start the server.
Important: This part is only for reference, you may dismiss these when developing your own AI.
Black (the player who makes the first move) was long known to have a big advantage, so we will specify the beginning of the game so that both players will get the same advantage to make the game fair.
We assume the openings are exactly the displayed 5x5 square in the center, x represents black and o represents white
The followings are all of the opening situations (on the Judge System):
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | o | x | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | o | | |
+---+---+---+---+---+
7 | | | x | x | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | o | | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | x | | |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | x | |
+---+---+---+---+---+
6 | | | o | | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | x | | |
+---+---+---+---+---+
6 | | | o | | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | o | | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | x | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | o | | |
+---+---+---+---+---+
7 | | | x | | x |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | | o | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | x | |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | | o | |
+---+---+---+---+---+
7 | | | x | x | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | | o | x |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | | o | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | x | | |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | | o | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | | x | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | | o | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | x | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | | o | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | x |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | | o | |
+---+---+---+---+---+
7 | | | x | | x |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | | o | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | x | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | o | | x |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | o | | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | x |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | o | | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | x | |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | o | | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | | x | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | o | | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | | | x |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | x |
+---+---+---+---+---+
6 | | | o | | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | | o | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | x | | | |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | x |
+---+---+---+---+---+
6 | | | | o | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | | | |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | | o | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | | | | | x |
+---+---+---+---+---+
5 6 7 8 9
+---+---+---+---+---+
5 | | | | | |
+---+---+---+---+---+
6 | | | | o | |
+---+---+---+---+---+
7 | | | x | | |
+---+---+---+---+---+
8 | | | | | |
+---+---+---+---+---+
9 | x | | | | |
+---+---+---+---+---+
Online Judge System by GomokuFun
Server by Luke Lazurite, Liu Yihao and Shen zheyu
Manual written by Liu Yihao
JI-SSTIA All Right Reverved