Teaching
2500 F '11
 
Assignments
The Hand In
Set 1
Set 2
Set 3
Set 3h
Set 4
Set 4h
Set 5
Set 5h
Set 6
Set 7
Set 6h
Set 8
Set 7h
Set 9
Set 8h
Set 10
Set 9h
Set 11
Set 10h
Set 12

Problem Set 8h

Due date: 11/08 @ 11:59pm

Programming Language: Intermediate Student Language with lambda


Honors-section homework

This is a short assignment, hence it is due sooner than past assignments.

Problem A1:

Develop the hangman game. The hangman game has a secret word that the player tries to guess. The player guesses letters by pressing keys on the keyboard. If the guessed letter is correct, it is revealed on the screen. For example, suppose the secret word is "guess" and the player presses the "s" key. The game should reveal something like:

The player loses if seven incorrect guesses are made. The player wins if the secret can be revealed with less than seven incorrect guesses. The player should not be penalized for repeatedly guessing the same incorrect letter.

The game should also reveal a "hangman" that shows the players progress toward losing. Each wrong guess adds another body part to the hangman. For example, if the user had guessed "t", "u", "s", "q", "r", the game should look something like:

The hangman is complete when enough wrong guesses have been made:


last updated on Tue Nov 29 19:02:43 EST 2011generated with Racket