Skip to content

Guessing game assignment from North Bergen High School's Intro to Engineering class.

Notifications You must be signed in to change notification settings

NBHS-STEM/guessing-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Assignment: Guessing Game

You're given a simple working guessing game in which the computer chooses a number at random and the user is invited to try and guess it. The game has a few tuneable parameters that allow players to change the number of starting lives, the difficulty increase with each level, and the starting range from which the computer chooses the secret number.

Your assignment is to add logic that allows the computer to give hints after each incorrect guess:

  1. In the initialization section of the game loop, create a variable hints with an intial value of True
  2. In the guessing loop, add code that informs the user whether her incorrect guess is too high or too low.
  3. The code from the previous step should run only if hints is set to True

About

Guessing game assignment from North Bergen High School's Intro to Engineering class.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages