Fix some headings that were too far in

This commit is contained in:
Carol (Nichols || Goulding) 2016-10-14 22:54:19 -04:00
parent d92f03be9c
commit 7031318d01
2 changed files with 4 additions and 4 deletions

View File

@ -874,7 +874,7 @@ Typing `quit` actually quits the game, but so will any other non-number input.
However, this is suboptimal to say the least. We want the game to automatically
stop when the correct number is guessed.
#### Quitting After a Correct Guess
### Quitting After a Correct Guess
Lets program the game to quit when the user wins by adding a `break`:
@ -923,7 +923,7 @@ By adding the `break` line after `You win!`, the program will exit the loop
when the user guesses the secret number correctly. Exiting the loop also means
exiting the program, because the loop is the last part of `main`.
#### Handling Invalid Input
### Handling Invalid Input
To further refine the games behavior, rather than crashing the program when
the user inputs a non-number, lets make the game ignore a non-number so the

View File

@ -897,7 +897,7 @@ Typing `quit` actually quits the game, but so will any other non-number input.
However, this is suboptimal to say the least. We want the game to automatically
stop when the correct number is guessed.
#### Quitting After a Correct Guess
### Quitting After a Correct Guess
Lets program the game to quit when the user wins by adding a `break`:
@ -946,7 +946,7 @@ By adding the `break` line after `You win!`, the program will exit the loop
when the user guesses the secret number correctly. Exiting the loop also means
exiting the program, because the loop is the last part of `main`.
#### Handling Invalid Input
### Handling Invalid Input
To further refine the games behavior, rather than crashing the program when
the user inputs a non-number, lets make the game ignore a non-number so the