Just put the following together using the started code and the GTK tutorials, just a grid of buttons with random counters on them - when you click it prints the coordinates for that button. Seems like a good start, next I should get it to let you play a hotseat game of gomoku, then I can think about making player two choose its moves from an AI (and probably as a warm-up use minimax on 3x3 version, and maybe do a quick connect-4 game too - since that takes much smaller search space).
No comments:
Post a Comment