Tic-Tac-Toe Game Engine
Basic Structure Initialize the Game World While the game is not over Play Game Ending Activities
Initialize the Game World Create game world data structures and initialize Create array for board Initialize array for board Create and initialize variables for current player, current move, game status, current status statement Draw game world
Basic Structure 2 Create game world data structures and initialize Draw game world While the game is not over Play Game Ending Activities
Play Game Get Player Input Validate Player Input Update Game World Check for End of Game Update Current Player Draw Game World
Basic Structure 3 Create game world data structures and initialize Draw game world While the game is not over Get Player Input Validate Player Input Update Game World Check for End of Game Update Current Player Draw Game World Ending Activities
Ending Activities Declare state of game Win/Lose/Tie Ask if the users want to play again
Basic Structure 4 Create game world data structures and initialize Draw game world While the game is not over Get Player Input Validate Player Input Update Game World Check for End of Game Update Current Player Draw Game World Declare state of game Ask if the users want to play again