Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kartmaan/guess-number-rust
Guess the random number (Rust)
https://github.com/kartmaan/guess-number-rust
guess-the-number pattern-matching random rng rust rust-lang
Last synced: 20 days ago
JSON representation
Guess the random number (Rust)
- Host: GitHub
- URL: https://github.com/kartmaan/guess-number-rust
- Owner: Kartmaan
- Created: 2024-10-17T12:50:33.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-10-21T13:31:38.000Z (2 months ago)
- Last Synced: 2024-10-21T14:01:23.947Z (2 months ago)
- Topics: guess-the-number, pattern-matching, random, rng, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# guess-number-rust
A small program made in Rust that **makes the player guess a random number**.
The program has 4 levels, depending on of the random value ranges width .
- 1 : from 1 to 500
- 2 : from 1 to 1000
- 3 : from 1 to 5000
- 4 : from 1 to 10000> **Note** : As a first Rust project, the goal here is to exploit as many different concepts
as possible (*borrowing, loops, enum, pattern matching, Result, etc.*) even if it
means sometimes making the code a little more convoluted.