Skip to content

hy0210/WendyHsinYun-Rust_number-guessing-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust_number-guessing-game

A simple number guessing game written in Rust.

Introduction

This is a simple number guessing game written in Rust. The game generates a random number, and you need to guess what it is. After each guess, the game will tell you if your guess is too high, too low, or correct.

How to Play:

  1. Make sure to install Rust first.

  2. git clone https://github.com/yourusername/guessing_game.git

  3. cargo run

Follow the game prompts to make guesses until you get it right.

Skills and Concepts

  • Variables and mutability

  • Data types and type conversion

  • Standard input and output

  • Error handling

  • Random number generation

  • Control flow

Reference

Rust Programming Language (ch2)

About

A simple number guessing game written in Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages