Skip to content

johnchapman-eaton/RockPaperScissorsKata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RockPaperScissorsKata

image

Rules

The rules of rock paper scissors are fairly simple:

  1. Scissors/Rock: Player1 Loses
  2. Scissors/Paper: Player1 Wins
  3. Scissors/Scissors: Tie
  4. Paper/Rock: Player1 Wins
  5. Paper/Scissors: Player1 Loses
  6. Paper/Paper: Tie
  7. Rock/Paper: Player1 Loses
  8. Rock/Scissors: Player1 Wins
  9. Rock/Rock: Tie

This Code Kata is to implement a modules that meets these rules.

Setup

This codespace environment should be setup properly (via vscode devcontainers - see the devcontainer.json file). This includes the ability to debug, check code coverage, and calculate complexity.

If you want to get the tooling installed locally, you have 2 options:

  1. Use the SE team's se-tup utility (here), and run se-tup install gtest
  2. Manually get the following programs installed (this snippet shows using apt but some are fetchable via snap or other means):
sudo apt install gcovr pmccabe cmake gcc g++ gdb

Build/Run

To build and run:

 cmake -S . -B build && cmake --build build --target run-tests

Example Answers

There is a branch with a set of examples named solution.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •