https://github.com/tsonglew/gomoku
:black_circle: Terminal gomoku with programmed AI
https://github.com/tsonglew/gomoku
artificial-intelligence gomoku python2
Last synced: about 1 year ago
JSON representation
:black_circle: Terminal gomoku with programmed AI
- Host: GitHub
- URL: https://github.com/tsonglew/gomoku
- Owner: tsonglew
- License: mit
- Created: 2016-08-01T10:09:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-04-14T04:55:21.000Z (almost 6 years ago)
- Last Synced: 2025-02-28T08:28:20.694Z (about 1 year ago)
- Topics: artificial-intelligence, gomoku, python2
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 13
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gomoku
* Play with your friend or the computer
### Steps
* Clone this repository `git clone https://github.com/kasheemlew/Gomoku.git`
* Execute `python main.py` to start the game
* Execute `python main.py ` to set the players' names
### Attention:
* 'X' represents Player1 who goes first, and then comes Player2 with 'O'.
* Question mark('?') represents the vertex you are on, and you could press 'C'
to set a chessman on this vertex.
* Press 'W', 'A', 'S', 'D' to move your question mark.
* After you set a chessman, the question mark will be covered by it. Use the
direction marks to move the question mark and you will see it again.
* Press 'R' to start over.
* Press 'T' to play with the computer.
* While the computer is thinking, you could press 'C' to push it.
* Press 'Q' to return to your terminal or console.
### Coming Soon:
- [x] Play with your friend
- [x] Play with the computer
- ~~[ ] With UI~~
### Screenshot
[](http://p4dq6rjze.bkt.clouddn.com/20180822_102549.mp4)