the game loop he is describing is as follows.
variable created called gameover - set to false.
then just run a while loop.
while(!gameover){
run game
ask user if wants to replay
set gameover to true if user wants to quit, otherwise keep false
}
game will loop indefinately if the user keeps selecting to continue and the user will play forever!!
variable created called gameover - set to false.
then just run a while loop.
while(!gameover){
run game
ask user if wants to replay
set gameover to true if user wants to quit, otherwise keep false
}
game will loop indefinately if the user keeps selecting to continue and the user will play forever!!