Things You will Learn:
Make tictactoe in Java/C#
Deciding a winner in TicTacToe
TicTacToe pseudo code
Pseudo Code :
Player selects a box i.e '1'
If that box is already filled with any player symbol gives an error and repeats the current iteration
If its not filled already,that box is filled with the current player's symbol
when the the number of filled boxes is greater than or equal to 5 the decidewinner method is called to check if we have a winner right now continues until all the boxes are filled.
Here is the code :
1:...
Saturday, 21 June 2014
Subscribe to:
Posts (Atom)