class Tarzan::Games::RockPaperScissors::Game
Private Instance Methods
prompt_move()
click to toggle source
# File lib/tarzan/games/rock_paper_scissors/game.rb, line 15 def prompt_move choice = @interface.prompt Move.valid Move.new choice: choice end
random_move()
click to toggle source
# File lib/tarzan/games/rock_paper_scissors/game.rb, line 20 def random_move choice = Move.valid.sample Move.new choice: choice end
rules()
click to toggle source
# File lib/tarzan/games/rock_paper_scissors/game.rb, line 11 def rules 'Rock beats Scissors beats Paper beats Rock' end