Generation

generate functionFri, 21 Apr 2023

This game consists of the a sequence of lines displayed on the screen. Each line will correspond to a letter of the word that the player must guess. The player has ten attempts to guess the word. Each attempt, the player will say a letter to find out if it's in the word or not. Keep the following instructions in mind when creating the game: Create a word list. You can choose the same type of words; for example, land animals, aquatic animals, household objects, school objects, means of transport, tools, professions, cities, countries, etc. Have the program draw on-screen the lines for the letters that make up the word. To do this, create a function that receives the word from the vocabulary list and draws a line on the screen for each letter in that word. There must be a space between each line.

print("_ _ _ _ _", "\n") print("_ _ _ _ _", "\n") print("_ _ _ _ _", "\n")

Questions about programming?Chat with your personal AI assistant