PROTOCOL: 1. What happens at the beginning? Hangman: broadcast the status word (all _) or the number of letters Player: wait for this first message alternative: ----------- Hangman: wait Player: broadcast first guess and the receive first status word implications of first choice: ----------------------------- Hangman's actions: must broadcast on his own -- probably need state Player's state has two distinct parts: (a) waiting for first message, and (b) the status of an on-going game 2. What happens during regular exchanges? Player: for every character typed, send the char to Hangman Hangman: determine the new status and it send back to Player 3. What happens at the end? How does the end come about? How do we know how many guesses we allow: -- our code can hardwire the number of guesses (in Player) -- the Hangman could randomly specify the number with the first message -- the Player could demand a certain number of guesses -- ... and possibly other options Let's choose the first one for now.