Chua Sheng Yang

Tic Tac Toe Semi Syntax

Determine who starts the game{

if ( its a winning move)

Make winning move

}else if{

(opponents move is winning move)

Block opponents move

}

If ( opponents next move is a winning move ){

make high probability to win move

}

If ( there are no more moves ){

End game

}else{

Repeat steps until game end.


To Tumblr, Love PixelUnion