Hangman Game Project Overview
32 Questions
3 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What happens when a player guesses a letter that has already been guessed?

  • The letter is replaced in the word.
  • The game ends immediately.
  • There is no penalty or consequence. (correct)
  • The player loses a chance.
  • Which key must be pressed to restart the game?

  • 'Z' key (correct)
  • Enter key
  • Spacebar
  • R key
  • What determines the length of the secret word in Hangman?

  • The number of guesses remaining
  • The total number of players
  • The current score of the player
  • The level of difficulty selected (correct)
  • How does the game indicate that a player has lost?

    <p>The Hangman figure is fully drawn. (D)</p> Signup and view all the answers

    What is displayed to show the player how many letters are in the secret word?

    <p>A sequence of blanks represented by underscores (C)</p> Signup and view all the answers

    What type of statistics must be maintained during the game?

    <p>Statistics related to gameplay (C)</p> Signup and view all the answers

    What occurs if the player guesses a letter that is not in the secret word?

    <p>The player is penalized with a loss of a chance. (A)</p> Signup and view all the answers

    What role does the computer play in the game Hangman?

    <p>Chooser of the secret word (B)</p> Signup and view all the answers

    What happens when the player guesses the entire word incorrectly after 6 attempts?

    <p>The player is informed they lost and the hangman fully appears. (B)</p> Signup and view all the answers

    Which feature is necessary for program technical correctness?

    <p>Properly documenting the program and using clear block style. (D)</p> Signup and view all the answers

    What does the program need to do if a player wins?

    <p>Inform the player they won and show a Win Screen with the secret word. (C)</p> Signup and view all the answers

    What is a requirement for maintaining game statistics?

    <p>The game should keep track of the win-loss ratio across multiple games. (D)</p> Signup and view all the answers

    Which aspect does NOT contribute to program creativity?

    <p>Using standard images and styles. (A)</p> Signup and view all the answers

    How should the player initiate a new game after winning or losing?

    <p>Using the 'z' button to restart immediately. (A)</p> Signup and view all the answers

    What is a component that must be included according to the rubric?

    <p>Use a custom block with parameters affecting functionality. (B)</p> Signup and view all the answers

    What is an incorrect way to handle ASK and SAY blocks in the program?

    <p>Using ASK for any player input outside the guess word. (A)</p> Signup and view all the answers

    What should be done with unused blocks in the program?

    <p>Remove them to maintain a clean scripting area. (D)</p> Signup and view all the answers

    What leads to a point deduction when submitting the project?

    <p>Submitting the project late without a valid reason. (D)</p> Signup and view all the answers

    Which of the following correctly describes the way the secret word is displayed during the game?

    <p>It is shown as a sequence of underscores, one for each letter. (C)</p> Signup and view all the answers

    What is the maximum number of chances a player has to guess the word in the Hangman game?

    <p>Six chances (B)</p> Signup and view all the answers

    What happens when the player guesses a correct letter?

    <p>The program informs the player and updates the word status. (C)</p> Signup and view all the answers

    How should the player input a guess for an entire word?

    <p>Using a dedicated 'Guess Word' button. (D)</p> Signup and view all the answers

    What is a requirement for the chosen secret word based on the difficulty level?

    <p>Hard level words must be 5 letters or less. (B)</p> Signup and view all the answers

    What should be done if the player guesses a letter that has already been guessed?

    <p>The game informs the player that this is an invalid guess. (B)</p> Signup and view all the answers

    What must the game display whenever the player makes a wrong guess?

    <p>An indication of incorrect guesses. (B)</p> Signup and view all the answers

    What does the program return if the player guesses the complete secret word incorrectly?

    <p>The player loses, and the secret word is revealed. (C)</p> Signup and view all the answers

    What should the player see to track their progress in the game?

    <p>The status of guessed letters and the hangman. (D)</p> Signup and view all the answers

    Which component is unnecessary for the Hangman game setup?

    <p>A scorekeeper displayed on the screen. (A)</p> Signup and view all the answers

    In what manner must the program display messages to the players?

    <p>In some alternative way without using SAY blocks. (D)</p> Signup and view all the answers

    How many pieces of the hangman should be included in the game?

    <p>Six pieces. (C)</p> Signup and view all the answers

    What aspect of the game must be documented for clarity?

    <p>The structure of the program and roles of partners. (B)</p> Signup and view all the answers

    What alternative option should be avoided in the game regarding user input?

    <p>Displaying answers in an input box. (A)</p> Signup and view all the answers

    Flashcards

    Hangman Game

    A word-guessing game where a player tries to guess a secret word letter by letter, losing a chance for each incorrect guess.

    Secret Word

    The word the computer chooses for the player to guess.

    Letter Guess

    A letter chosen by the player to be part of the secret word.

    Incorrect Guess

    A letter guessed by a player that is not part of the secret word.

    Signup and view all the flashcards

    Hangman Figure

    A drawing of a stick figure that is built one part at a time for incorrect letter guesses.

    Signup and view all the flashcards

    Game Restart (z)

    A key press (z, as described in specs) to start a new game after a win or loss.

    Signup and view all the flashcards

    Difficulty Levels (Easy/Medium/Hard)

    Options for adjusting the length of the secret words used in the game.

    Signup and view all the flashcards

    Game Statistics

    Data collected about past gameplay rounds, like win/loss records.

    Signup and view all the flashcards

    Guess Word Button

    A button that prompts the player to guess the entire secret word in one go.

    Signup and view all the flashcards

    Game End Conditions

    Conditions that determine when the game ends (win/lose).

    Signup and view all the flashcards

    Lose Screen

    Screen displayed when the player loses; shows the correct secret word.

    Signup and view all the flashcards

    Win Screen

    Screen displayed when the player wins; shows the correct secret word.

    Signup and view all the flashcards

    Play Again

    Option for the player to restart the game.

    Signup and view all the flashcards

    Sprite Naming

    Using unique, descriptive names for sprites in the program, not generic names like 'Sprite' or 'Sprite1'.

    Signup and view all the flashcards

    Program Documentation

    Well-commented code, clear variable names, and tidiness in the code blocks.

    Signup and view all the flashcards

    Program Creativity

    Uniqueness and visual appeal of the program's design, including its images and overall style; professional look.

    Signup and view all the flashcards

    Secret Word Display

    The continuous and correct display of the secret word and guessed letters.

    Signup and view all the flashcards

    Program Functionality

    The program works correctly based on the requirements.

    Signup and view all the flashcards

    Secret word selection

    Choosing a random word from a list based on game level (easy, medium, or hard).

    Signup and view all the flashcards

    Word Status Display

    Showing a sequence of underscores representing the secret word, replacing underscores with guessed letters.

    Signup and view all the flashcards

    Hangman setup

    Displaying the initial Hangman image on the screen.

    Signup and view all the flashcards

    Letter Guess Input

    Allowing the player to select a single letter guess using letter sprites.

    Signup and view all the flashcards

    Correct Letter Guess

    Replacing underscores in the secret word display with the correctly guessed letter.

    Signup and view all the flashcards

    Incorrect Letter Guess

    Updating the list of guessed letters and adding a part to the Hangman image if the guess is wrong.

    Signup and view all the flashcards

    Duplicate Letter Guess

    Preventing the player from guessing the same letter repeatedly.

    Signup and view all the flashcards

    Game Level

    Choosing between Easy, Medium, or Hard game levels, affecting the word length.

    Signup and view all the flashcards

    Easy

    Game level; secret word has 9 or more letters.

    Signup and view all the flashcards

    Medium

    Game level; secret word has 6 to 8 letters.

    Signup and view all the flashcards

    Hard

    Game level; secret word has 5 or less letters.

    Signup and view all the flashcards

    Game Win Condition

    Player wins by guessing the secret word correctly.

    Signup and view all the flashcards

    Game Lose Condition

    Player loses by running out of chances or incorrect guesses.

    Signup and view all the flashcards

    Game End Display

    Showing a win or lose screen at the end of the game, revealing the secret word.

    Signup and view all the flashcards

    Custom Block

    A block of code that performs an operation or set of operations and can be called several times.

    Signup and view all the flashcards

    Study Notes

    Hangman Project Requirements

    • Project Due: December 2, 2024, 10:00 PM (Canvas)
    • Game Objective: Player guesses letters in a secret word chosen by the computer. The player loses chances as they guess incorrectly as the Hangman figure is drawn. The game ends when the word is guessed correctly or the Hangman is fully drawn.
    • Game Play:
      • Computer chooses a secret word from a list.
      • Hidden word is displayed as underscores.
      • Players guess single letters; correct guesses reveal letters in the secret word, incorrect guesses add to the Hangman figure.
      • Repeated guesses don't penalize the player.
      • "Guess Word" button allows the player to guess the entire word (only use ask block here).
    • Secret Word Selection (Based on Difficulty):
      • Easy: 9 or more letters.
      • Medium: 6-8 letters.
      • Hard: 5 or fewer letters.
    • Game End & Restart:
      • Player wins by guessing the word correctly (in whole or in part).
      • Player loses by running out of chances (Hangman complete).
      • Game restarts with a "z" key press.
    • Word Display: Current guessed letters must be displayed on the screen, while unguessed letters appear as underscores.
    • Hangman:
      • The Hangman figure reveals pieces with incorrect guesses (head, body, arms, legs).
      • The Hangman sprite's image is crucial for tracking game progress; its image must meet educational standards.
    • Sprite Requirements:
      • Appropriately named sprites (avoid "Sprite1", "Sprite2").
      • "Guess Letter" sprite(s) to handle single letter guesses.
      • "Guess Word" button to prompt for the entire guess.
      • Appropriate use of (and avoidance of) ask/say blocks is crucial(only "ask" allowed when guessing the entire word).
    • Word List: Use the provided "wordList" from the starter code to choose a random secret word based on difficulty settings.
    • Statistics: The game must track and display the win/loss ratio and fewest guesses record for the user's subsequent games.
    • Documentation:
      • Organize Snap! scripts for readability.
      • Remove unused blocks.
      • Name sprites, variables, and custom blocks clearly.
      • Add comments to explain complex code sections.
      • Provide details about which partner worked on which parts of the code.
    • Custom Block Requirements:
      • Include a custom block with a parameter impacting game functionality (at least 1 parameter).
      • The block must utilize sequencing, selection, and iteration and produce different outputs based on the different input parameters.
      • Use a list (other than the word list) for efficient game mechanics.
    • Screen Display: Information must be displayed without using the "say" block or variable display boxes.
    • Important Note: Late submission will incur point deductions. Deductions will increase as time passes (see the rubric). Also, maintain school-appropriate content.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    This quiz outlines the requirements for a Hangman game project. It covers game objectives, gameplay mechanics, secret word selection based on difficulty levels, and winning conditions. Perfect for understanding the fundamentals of game design and implementation.

    More Like This

    Use Quizgecko on...
    Browser
    Browser