Rock Paper Scissors

Rock Paper Scissors (RPS) is a game commonly implemented in computer science class to show how "if" statement logic works. The game is simple: Rock beats scissors, scissors beats paper, and paper beats rock.

 

Contrary to popular belief, Rock Paper Scissors does not need to be implemented with 3 "if" statements. The program can be implemented with two "if" statements or even no "if" statements!

 

I'm on a quest to see exactly which Rock Paper Scissors algorithm is the "best", and this experiment aims to control for hardware and operating system differences!

A chart showing how the three game elements of "Rock-Paper-Scissors" interact.