Skip to main content

Hangman

  • Chapter
  • First Online:
Programming 101
  • 848 Accesses

Abstract

The focus for this chapter is the paper-and-pencil game of Hangman. In Hangman, one player decides on a word and writes out blanks for each letter. This player also makes a start on the hanging progression by drawing a representation of a scaffold. The other player attempts to guess the word, asking for one letter at a time. If a letter is in the word, once or many times, the first player writes the letter on the appropriate blanks. If the guessed letter is not in the secret word, the first player advances the hanging. Yes, this grisly game is played by children and, more notably, parents and children. I played it with my parents and I played it with my children. The computer program will take the role of the first player, the one who chooses the secret word.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Jeanine Meyer

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Meyer, J. (2018). Hangman. In: Programming 101. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3697-0_9

Download citation

Publish with us

Policies and ethics