Sign in
Log inSign up
Anam Ansari

75 likes

·

560 reads

7 comments

Wilfred Almeida
Wilfred Almeida
Feb 9, 2023

I tried putting the menu in a loop.

read_line() appends to the String choice so the newly given input won't be processed.

To deal with this, call the choice.clear() before calling read_line() in the loop.

1
·
·1 reply
Anam Ansari
Anam Ansari
Author
·Feb 11, 2023

Correct!

·
William Tinker
William Tinker
Apr 27, 2023

Interesting thoughts about Rust. I love this game, and even more I like to read reviews about the best casinos and slots, for example, how casinohex.org/canada/casinos/luxury-casino where everything is always detailed and interestingly written.

·
·1 reply
Amanda
Amanda
Sep 25, 2023

great!

·
Karan Pargal
Karan Pargal
Jul 10, 2023

In comparing strings, it was working when .trim() was added else it was giving it as false due to a newline character being there in the string

·
·1 reply
New Wei
New Wei
Jan 21, 2024

correct

·
Shubham Sah
Shubham Sah
Jan 22, 2024

Amazing

·