Skip to content
/ Gomoku Public

A game-playing agent capable of playing Five-in-a-Row (Gomoku) (AI)

License

Notifications You must be signed in to change notification settings

autrin/Gomoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Gomoku

A game-playing agent capable of playing Five-in-a-Row (Gomoku)

To run the game simply enter the command: python gomoku.py

In the main function: h_alphabeta_search uses the advanced evaluation method. And you can use it with: play_game(game, {"W": player(h_alphabeta_search)}, verbose=True).utility alpha_beta_cutoff_search uses the usual evaluation function. And you can use it with: play_game(game, {"W": player(alpha_beta_cutoff_search)}, verbose=True).utility

Both of the alphabeta functions are basically the same. I just gave a different evaluation function to each.

To change the depth, you can modify the paramters of the functions.
Right now the depths are 3 and 4.

About

A game-playing agent capable of playing Five-in-a-Row (Gomoku) (AI)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages