This a list of solutions to beginner-projects written in Rust
To run a solution: compile the crate, and run the corresponding example
For example to run magic_8_ball.rs
, run
$ cargo build
$ cargo run --example magic_8_ball
Examples can be found in the examples
directory
To view documentation, run cargo doc --open
- 99 Bottles
- Magic 8 Ball
- Bonus
- Pythagorean Triples Checker
- Rock Paper Scissors Game
- Coin Estimator By Weight
- Mad Libs Story Maker
- Change Calculator
- Mean, Median, and Mode
- Higher Lower Guessing Game
- Multiplication Table
- Fibonacci Sequence
- Base Jumper
- Hangman Game
- Menu Calculator
- Dice Rolling Simulator
- Bonus
- Count and Fix Green Eggs and Ham
- What's My Number?
- Factors of a Number
- Bonus
- Countdown Clock
- Turn Based Pokemon Style Game
- A Variation of 21
- Compare Recent Reddit Karma
- Watch for New TIL Facts
- Random Wikipedia Article
- What's the Weather?
- Sierpinski Triangle
- Two Numbers
- Chickens and Rabbits
- FLAMES Game
- Pomodoro Timer
- Scarne's Dice