Skip to content

Jolah1/guessing_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guessing Game

This is a simple number guessing game written in Rust. It’s a beginner-friendly project designed to demonstrate basic concepts like user input, control flow, random number generation, and pattern matching in Rust.

How It Works

  • The computer randomly selects a number between 1 and 100.
  • The player is prompted to guess the number.
  • After each guess, the program will tell the player whether the guess was too low, too high, or correct.
  • The game continues until the correct number is guessed.

Getting Started

Prerequisites

Build & Run

git clone https://github.com/your-username/guessing_game.git
cd guessing_game
cargo run

Dependencies

rand - For random number generation

  • Add this to your Cargo.toml:

About

A beginner-friendly project designed to demonstrate basic concepts like user input, control flow, random number generation, and pattern matching in Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages