Hi,
Here is a nice game of GOMOKU adapted from the GOMOKU.bas listing found in "More Basic Computer Games" by David Ahl & Steve North, Workman Pub 1979.
I started off with a straight port but then added 3 levels of play depending on how smart you want your computer component to be. These "AI" methods are discussed a bit in the Stack Script if you're interested. There is also a debug field you can toggle on and off if you want to follow how the computer is responding to your moves.
In the original basic game it permitted a grid 19 x 19 but I trimmed it down to 15 x 15 for legibility's sake.
Happy coding,
Mike
Here is a nice game of GOMOKU adapted from the GOMOKU.bas listing found in "More Basic Computer Games" by David Ahl & Steve North, Workman Pub 1979.
I started off with a straight port but then added 3 levels of play depending on how smart you want your computer component to be. These "AI" methods are discussed a bit in the Stack Script if you're interested. There is also a debug field you can toggle on and off if you want to follow how the computer is responding to your moves.
In the original basic game it permitted a grid 19 x 19 but I trimmed it down to 15 x 15 for legibility's sake.
Happy coding,
Mike
Statistics: Posted by Hutchboy — Sat Aug 17, 2024 3:29 am