The rules of rock paper scissors are fairly simple:
- Scissors/Rock: Player1 Loses
- Scissors/Paper: Player1 Wins
- Scissors/Scissors: Tie
- Paper/Rock: Player1 Wins
- Paper/Scissors: Player1 Loses
- Paper/Paper: Tie
- Rock/Paper: Player1 Loses
- Rock/Scissors: Player1 Wins
- Rock/Rock: Tie
This Code Kata is to implement a modules that meets these rules.
This codespace environment should be setup properly. This includes the ability to debug, check code coverage, and calculate complexity.
To build and run:
cmake -S . -B build && cmake --build build --target run-tests
There is a branch with a set of examples named solution
.