项目作者: madelinben

项目描述 :
A console game of guess that word, with the Player attempting one letter at a time.
高级语言: Python
项目地址: git://github.com/madelinben/hangman.git
创建时间: 2020-10-24T00:00:01Z
项目社区:https://github.com/madelinben/hangman

开源协议:

下载


Hangman

A console game of guess that word,
with the Player attempting one letter at a time.

Checklist

  • Obtain plaintext file of nouns in the english dictionary.
  • Import words from file and select a random index from the list.
  • Validate dictionary for single nouns on import.
  • Cover selected word for display.
  • Implement game loop while user is guessing the word and has available attempts.
  • Validate whether an attempt is a single char and has not previously been made.
  • Guessed characters are validated and uncovered to the user.
  • Break game loop and confirm whether the covered word was guessed correctly.
  • Display attempt count and visual hangman to user.
  • Ask the user whether they’d like to play again on exit.