Class: VikingRoom7::Human

Inherits:
Player
  • Object
show all
Defined in:
lib/viking_room7/human.rb

Instance Attribute Summary

Attributes inherited from Player

#hand, #name

Instance Method Summary collapse

Methods inherited from Player

#initialize, #throw

Constructor Details

This class inherits a constructor from VikingRoom7::Player

Instance Method Details

#get_handObject



4
5
6
7
8
# File 'lib/viking_room7/human.rb', line 4

def get_hand
  puts "What do you want to play?(Use 'R' for Rock, 'P' for Paper, and 'S' for Scissors"
  hand = gets.chomp.downcase
  @hand = hand
end