Skip to content

A console-based number guessing game built with C# and .NET that demonstrates fundamental programming concepts including random number generation, user input handling, and control flow.

Notifications You must be signed in to change notification settings

veepanshu-kasana/NumberGuesser-ConsoleApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NumberGuesser Console App

A console-based number guessing game built with C# and .NET. This interactive application challenges users to guess a randomly generated number while showcasing clean code practices and fundamental C# concepts.

🎮 Features

  • Random number generation (1-10)
  • Interactive console interface
  • Colored text feedback
  • Input validation
  • Play again option
  • User-friendly messages

⚙️ Technologies Used

  • C# 12.0
  • .NET 8.0
  • Visual Studio Code

🚀 Getting Started

Prerequisites

  • .NET 8.0 SDK or later
  • Any text editor (VS Code recommended) or Visual Studio 2022

Installation

  1. Clone the repository
git clone https://github.com/veepanshu-kasana/NumberGuesser-ConsoleApp.git
  1. Navigate to the project directory
cd NumberGuesser-ConsoleApp
  1. Run the application
dotnet run

📝 How to Play

  1. Launch the application
  2. Enter your name when prompted
  3. Guess a number between 1 and 10
  4. Receive feedback on your guess
  5. Continue guessing until you find the correct number
  6. Choose to play again or exit

🎯 Game Rules

  • Guess a number between 1 and 10
  • Follow the prompts and enter valid numbers
  • Receive feedback after each guess
  • Option to play multiple rounds

🛠️ Project Structure

NumberGuesser/
├── Program.cs          # Main game logic and entry point
├── README.md          # Project documentation
└── NumberGuesser.csproj # Project configuration

👨‍💻 Author

Veepanshu Kasana

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


⭐ Don't forget to star the repo if you found this helpful!

About

A console-based number guessing game built with C# and .NET that demonstrates fundamental programming concepts including random number generation, user input handling, and control flow.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages