Inspiration
This is a simple rock-paper-scissors game written in Rust. It is a good way to learn Rust syntax and concepts.
What it does
The user is prompted to enter a choice of rock, paper, or scissors. The computer then randomly chooses one of the three options. The user's choice is compared to the computer's choice and the result is printed to the console.
How we built it
This project was built using the Rust programming language and the rand crate to generate a random numbers.
Challenges we ran into
The main challenge was the burrow checker in Rust, which brings new concepts that are not present in other languages. However, this program was a good way to learn about Rust syntax and concepts.
Accomplishments that we're proud of
I am proud of the fact that I was able to use many concepts that I learned in the Rust book to create this program. For example, I was used enums, structs, and match expressions. I was also able to use the rand crate to generate a random number.
What we learned
I learned about the more about the "borrowing" concept in Rust.
What's next for Rock-Paper-Scissors
I would like to add a GUI to this program. I would also like to add a score counter so that the user can play multiple rounds.
Log in or sign up for Devpost to join the conversation.