Skip to content

A web version of the Gomoku game with a good AI

License

Notifications You must be signed in to change notification settings

mzktbyjc2016/GomokuWeb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GomokuWeb

A web version of the gomoku game with AI I wrote

Dependencies: Python2, Numpy, Numba, Flask (All comes with Anaconda2)

To run the game server, enter command: python run.py

Then open the website http://127.0.0.1:5000/ in your browser to play!

The player name box determines who plays first, i.e., to let the AI play first, simply put "AI" in "Black" and "You" in "White".

The AI Level box determines the number of moves AI will predict. Currently the default is 7 so it will compute a step in less than 1s. (But it's actually not easy.) If you are good at this game and want a challenge, give AI Level 10 a try. In my test Level > 11 will be pretty slow.

To let 2 AI play against each other, put "AI" and "AI2" in the "Black" and "White" box.

If you have a new AI script, please name it starting from "AI", e.g. "AI_new.py", and put corresponding name in the box.

Please Enjoy!

Note: Special thanks to @lihongxun945 for the beautiful design of the web page!

About

A web version of the Gomoku game with a good AI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 68.7%
  • CSS 25.8%
  • JavaScript 3.9%
  • HTML 1.6%