rosasck / rps

Rock Paper Scissors- Rust Example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rock Paper Scissors- Rust Example

How to Play

# Clone Repository
git clone git@github.com:rosasck/rps.git

# Build the Game
cargo build 

# Run the Game!
cargo run 

How to Win!

In this straightforward game, victory goes to the first player to secure at least 3 out of 5 rounds!

  1. Rock beats scissors!
    • Because rock crushes scissors.
  2. Scissors beats paper!
    • Because scissors cut paper.
  3. Paper beats rock!
    • Because paper covers rock.

What happens in a tie? In this game, not everybody can be a winner so you keep playing!

About

Rock Paper Scissors- Rust Example


Languages

Language:Rust 100.0%