Skip to content

Felipecardosovargas/Guessing-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Guessing Game ๐ŸŽฎ

Alan Turing

Welcome to the Guessing Game! This game allows players to guess numbers generated by the computer, offering different difficulty levels, dynamic scoring, and a history of the best results.

Features

1. Main Menu

The game features a main menu with the following options:

  • Start New Game
  • View Rules
  • View Score History
  • Exit ๐Ÿšช

2. Difficulty Levels

Players can choose from three difficulty levels:

  • Easy: Guess a number between 1 and 50, with 10 attempts.
  • Medium: Guess a number between 1 and 100, with 7 attempts.
  • Hard: Guess a number between 1 and 200, with 5 attempts.

3. Scoring System

  • Base score by level:
    • Easy: 100 points
    • Medium: 200 points
    • Hard: 300 points
  • Deductions: Points are subtracted for each attempt.
  • Bonus: +50 points for each unused attempt.

4. Score History

The game keeps track of the last 10 scores in an array, storing the score and the difficulty level chosen for each game.

5. Additional Features

5.1 Sequence Mode ๐Ÿ”ข

A special mode where the player must guess a sequence of 3 numbers instead of just one.

Example sequence: [5, 8, 2]
The player must guess each number in the sequence correctly.

5.2 Hints System ๐Ÿ’ก

Players can request hints for a cost in points:

  • Parity Hint (Even/Odd): -10 points
  • Range Hint (Upper/Lower Half): -20 points
  • Proximity Hint (Hot/Cold): -15 points

5.3 Record System ๐Ÿ†

The game stores the best scores for each difficulty level.

Technical Requirements

  • Arrays: Used for storing score history and level configurations.
  • Loops: A loop is used to keep the main menu active and to handle attempts.
  • Conditionals: Used for validating user input and providing appropriate messages based on the player's guess.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages