๐ŸŽฒ

Number Guessing Game

Guess the secret number with hints, levels and a score.

Project 2Beginner

๐Ÿงฉ Problem statement

Guess the secret number with hints, levels and a score. Design it completely in pseudocode first: plan the data, split the work into functions, write the logic, dry-run it and test it.

๐Ÿ“‹ Requirements

  • Random target concept
  • Attempts
  • Levels
  • Hints
  • Score

๐Ÿ“ฅ Inputs

  • The player's guesses
  • Chosen level

๐Ÿ“ค Outputs

  • Too high / too low hints
  • Final score

๐Ÿ“ Rules

  • Fewer attempts means a higher score

๐Ÿšง Constraints

  • Target is between 1 and the level's maximum

๐Ÿงญ Suggested approach

  • Restate the problem in your own words
  • List the data you must remember (variables, lists, maps)
  • Write one FUNCTION per feature
  • Write the main program that calls them
  • Dry-run with the Run button
  • Test normal cases and edge cases

๐Ÿง  Required concepts

  • Variables
  • Conditions
  • Loops
  • Lists
โœ๏ธ Pseudocode editor ยท dry-run tool ยท test cases

Design your solution here. Use Run to dry-run it step by step. Hints unlock one at a time โ€” try on your own first!

๐Ÿงช Edge cases to test

  • Empty input
  • Very large values
  • Repeated or duplicate entries

๐Ÿš€ Challenge extensions

  • Add a feature of your own
  • Make it work for 10ร— more data โ€” what changes?

โ† All projects