30 4 / 2010
Pseudocode for Tic Tac Toe
while (determining who starts the game){
if (it is a winning move){
make winning move
check win or no more moves
} else if (opponents’s next move a winning move) {
block opponent’s move
check win or no more moves
} else {
make high probability to win move
check win or no more moves
end
}
}