Skip to content

balramkhichar/rps-gem

Repository files navigation

Command-line Rock, Paper and Scissors game

This gem allows you to play command-line Rock, Paper and Scissors game. You have to just give one option from rock, paper and scissor. It will display either you or computer won. There might be a case in which user doesn't provide any argument or provide an invalid option, so we have to handle such cases.

Usage play-rps rock|paper|scissor

You can look for manual using play-rps -e

Example play-rps rock . It will give you the following output:

   Computer played scissors
   
   You Won!

I also added a spec to test all the possible conditions. You can find the spec file in /specs directory. Further you can also check the repo on github https://github.com/balramkhichar/rps-gem. You are welcomed to contribute to it there.

About

Gem to play Command-line Rock, Paper and Scissors game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages