Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 565 Bytes

README.md

File metadata and controls

11 lines (10 loc) · 565 Bytes

GuessingGame

Guess the letters To complete the word, the player has to guess the letters within a certain number of attempts.

How is the code?

  1. Prepare and clean words from txt file to list of words.
  2. Save this list in a file with the extension (.dat) using the Binary Write protocol.
  3. Load this file in the right place and then use it.
  4. Get a random word from this list.
  5. Allow the player to guess letters within a certain number of attempts.
  6. If all attempts are made, the player loses.
  7. If the player guesses all the letters correctly, wins.