tnx in advance
tnx in advance
If memory serves:
Initalize board to all blanks or zero's
Call Main Menu function which asks if you'd like to play a game
If yes, call game_menu()
which displays the board, asks for the next move, etc., in a large loop.
Get a move.
Confirm given move would be legal, if made.
If it's legal:
* make the move and display it.
*Check if game is now won, lost, or drawn, as a result of that last move
**If it is, give appropriate message and return to main menu(). Ask if they want to play again.
if game is not over, loop back to top of game_menu for next move.