Hi Bruvel,
I was going through your code and found some problem in that...I have not actually implemented it but just looked it a bit..
In players you have use some code like
1 if
(board[row][col] == selec1 && board[row][col + 1] == selec2 && board[row][col + 2] == selec2) max=400;
2 if(board[row][col] == selec1 && board[row][col - 1] == selec2 && board[row][col - 2] == selec2) max =400;
3 if(board[row][col] == selec1 && board[row + 1][col] == selec2 && board[row + 2][col] == selec2)max=400; ................................
9 if(board[row][col] == selec1 && board[row - 1][col] == selec2) max = 950;
10 if(board[row][col] == selec1 && board[row][col - 1] == selec2) max = 950;
11 if(board[row][col] == selec1 && board[row][col + 1] == selec2) max = 950;
These are lines from the player mary...If you see the 1 & 11 line & similarly 2 & 10 line all the cases satisfying line 1 will satisfy line 11 & same with 2 & 10...I guess there should be a break so that if any condition satisfies it will move out of the inner for loop. just check it
And can you please forward me some good links for MIN-MAX algorithm or other gaming algorithms
Thanks![Yes [Y]](/emoticons/emotion-21.gif)
Maestro