https://github.com/skywind3000/gobang
Gobang game with artificial intelligence in 900 Lines !!
https://github.com/skywind3000/gobang
Last synced: about 1 year ago
JSON representation
Gobang game with artificial intelligence in 900 Lines !!
- Host: GitHub
- URL: https://github.com/skywind3000/gobang
- Owner: skywind3000
- License: mit
- Created: 2015-08-19T15:03:42.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-07-22T07:21:55.000Z (almost 2 years ago)
- Last Synced: 2024-11-14T01:33:13.029Z (over 1 year ago)
- Language: Python
- Homepage: http://www.skywind.me/blog/archives/1029
- Size: 66.4 KB
- Stars: 116
- Watchers: 6
- Forks: 30
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gobang
Gobang game with artificial intelligence in 900 Lines !!
How to play
===========
Download:
> git clone https://github.com/skywind3000/gobang.git gobang
play in normal mode:
> python gobang/gobang.py
play in hard mode:
> python gobang/gobang.py hard
Game Rule
=========
Make five or more stones in a in to win. You will make your move by enter the coordinate value (row + column) of the chess-board to defeat the AI competitor.
Play it in the console:

Character 'O' - black stone (you)
Character 'X' - white stone (computer)
if you want to make a new move below the white stone 'X', just enter 'JI' (row is 'J', and column is 'I'):

After entering 'JI' the computer will think for a few seconds and makes its move too. Then another turn begins, you can input new row-col values to continue playing until someone wins.