Public feed
#598667
// GAME: GOMOKU, ASSIGN FEW marks on one line or diagonally so then you win //
DEFINE ENEMY 1
DEFINE EMPTY_SQUARE 0
DEFINE ME 2
MAX_X = 8;
MAX_Y = 8;
dataHolder = array[MAX_X][MAX_Y];
// lets say we have playfield
2 0 0 0 0 0 0 0
0 2 0 0 1 0 0 0
0 0 2 0 1 0 0 0
0 0 0 2 1 0 0 0
0 0 0 0 2 0 0 0
0 0 0 0 1 0 0 0
0 0 0 0 0 0 0 0
2 2 2 2 2 0 0 0
Youw you see, there should be two wins but how to control it ?
by two wins you see the bottom has five 2's and also there is five 2's diagonally..