© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
J. MeyerProgramming 101https://doi.org/10.1007/978-1-4842-8194-9_9

9. Word Guessing Game

Jeanine Meyer1  
(1)
Mt Kisco, NY, USA
 

Abstract

The focus for this chapter is a game of guessing a word one letter at a time. It resembles several such games. The computer program will take the role of the player that chooses the secret word. The number of guesses, or, as this version counts, the number of letters that are not in the secret word, can be fixed ahead of time and is hard-coded in my sketches. You can think of this as the number of allowed wrong moves. An alternative approach is to have the player propose the number of guesses, wrong guesses, or have a time ...

Get Programming 101: Learn to Code with the Processing Language Using a Visual Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.