class Rockpaperscissors123::HumanPlayer

Attributes

listener[R]
move[W]

Public Class Methods

new(args = {}) click to toggle source
# File lib/rockpaperscissors123/human_player.rb, line 8
def initialize(args = {})
  @listener = args[:listener] || Listener.new
end

Public Instance Methods

decide_move() click to toggle source
# File lib/rockpaperscissors123/human_player.rb, line 12
def decide_move
  puts "Enter your move now: "
  self.move = listener.get_formatted_input
end