Presentation is loading. Please wait.

Presentation is loading. Please wait.

Tic-Tac-Toe Game Engine

Similar presentations


Presentation on theme: "Tic-Tac-Toe Game Engine"— Presentation transcript:

1 Tic-Tac-Toe Game Engine

2 Basic Structure Initialize the Game World While the game is not over Play Game Ending Activities

3 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

4 Basic Structure 2 Create game world data structures and initialize Draw game world While the game is not over Play Game Ending Activities

5 Play Game Get Player Input Validate Player Input Update Game World Check for End of Game Update Current Player Draw Game World

6 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

7 Ending Activities Declare state of game
Win/Lose/Tie Ask if the users want to play again

8 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


Download ppt "Tic-Tac-Toe Game Engine"

Similar presentations


Ads by Google