Skip to content

A Java-based Number Guesser Game where players attempt to guess a number chosen by the guesser, showcasing modular design and logical comparisons.

Notifications You must be signed in to change notification settings

GeekyHim/Guesser-Game-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Number Guesser Game

Project Review

The Number Guesser Game is a simple, console-based Java application where a "Guesser" picks a number, and three "Players" attempt to guess it. The game determines the winner(s) based on matching guesses and provides an interactive experience through user input.

What the Code Does

  • Modular Design: The project is divided into separate classes for better organization and maintainability:
    • Guesser: Handles the input from the guesser.
    • Player: Takes guesses from individual players.
    • Umpire: Manages the game flow by collecting inputs and comparing guesses to determine winners.
    • Main: Controls the game setup and execution.
  • User Interaction: The game uses Scanner for console-based input to create an interactive experience.
  • Logic: The Umpire class handles all comparison scenarios, ensuring accurate and fair results.

What I Learned

  • How to structure a program into separate, reusable classes based on their responsibilities.
  • Designing and implementing conditional logic to handle multiple outcomes in a game.
  • Using Scanner for user input and managing it effectively.
  • Collaborative class behavior and encapsulation for cleaner code.

About

A Java-based Number Guesser Game where players attempt to guess a number chosen by the guesser, showcasing modular design and logical comparisons.

Topics

Resources

Stars

Watchers

Forks

Languages