/Single_throw_yatzee-rust-

Using the built in random number generator, throw 5 dice (1-6) and check if they are the same, if they are, that is a single throw yatzee. Display failures, and when a yatzee is thrown, display how many throws it took

Primary LanguageRustOtherNOASSERTION

This is a rust single throw Yatzee generator

Using the rust built in random number generator, will create dice throws of 5 dice, 1-6, and when a single throw yatzee is found, displays how long it took.

Just a simple program I decided to write to help learn rust (inspired by numberphile on youtube)

build with rust nightly, or using multirust

cargo run

or

cargo build --relase