Class: Game
- Inherits:
-
Object
- Object
- Game
- Defined in:
- lib/rock_paper_scissors_cli/game.rb
Constant Summary collapse
- QUIT_CMDS =
['q', 'quit', 'exit','n','no']
- PLAY_CMDS =
['yes', 'y']
Instance Method Summary collapse
- #display_rules ⇒ Object
-
#initialize ⇒ Game
constructor
A new instance of Game.
- #play ⇒ Object
Constructor Details
Instance Method Details
#display_rules ⇒ Object
21 22 23 |
# File 'lib/rock_paper_scissors_cli/game.rb', line 21 def display_rules "Lets play Rock, Paper, Scissors! Rules are simple. You are playing against the a Computer object. Your objective is to select 1-of-3 weapons to use against the Compuer. To quit at anytime type q, quit, exit." end |