Skip to content

RolandGao/Gomoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gomoku (Five in a Row)

A Gomoku AI that can think 9 steps ahead. (An average human can think about 3 steps ahead.)

If you don't have Processing already installed, go to https://processing.org/download/ and download it.

Click on any .pde file and the entire project will load. Hit the play button to challenge the AI. To undo a step, press g.

Customization

You can change who plays first and the AI strength by going into gomoku3_4/gomoku3_4.pde and changing the following line.

game = new Game(9, 2);

The first parameter indicates the AI's strength, I suggest putting in 9 or 7.

The second parameter indicates who is playing whom. 1 is AI vs Player, 2 is Player vs AI, 3 is AI vs AI, 4 is Player vs Player.

On my MacBook Pro, The AI takes around 1 second to figure out each move, though it might take longer on the first two moves. If it takes too long on your computer, try setting the AI strength to 7 instead of 9.

Competition

Our AI model can beat most if not all existing AI models, even when our AI goes second (aka when going white).

yyjhao/HTML5-Gomoku with over 60 stars. We win as white.

Kesoyuh/Gomoku with over 150 stars. We win as white.

gobang with over 1.2k stars. We win as white.

About

A Gomoku AI using processing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published