Nine-board tic-tac-toe is a
tic tac toe variant
where nine ordinary, 3-by-3 tic-tac-toe boards make up a 3-by-3
array. Players take turns making marks (human 'X', computer 'O') in the
ordinary tic-tac-toe boards. The first mark can appear anywhere. Each
subsequent mark gets made in any un-marked spot in the ordinary board that
corresponds to the spot where the previous mark got made.
The usual 3-in-a-row arrangement of marks in any of the 9 ordinary boards
A strength of 4 will handily defeat humans who have never
played Nine-board before, and most who have. A stregth of 6 causes firefox
to complain about slow scripts. Your machine might be faster.
A strength of 0 causes the program to use the static utility
function only - no mini-maxing happens. This is pretty easy to beat
as it don't look ahead even 1 move to see who might win.
You probably want to use even values for strength: odd numbers look one
move ahead for how the computer assumes the human will move, and causes
GNU General Public License.
©Bruce Ediger, June 2013
Modified to Drupal, Jorma Hytönen, 13.9.2013, Perjantai !! Käännetään suomeksi kun ehditään.