class VikingRoom7::Computer

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/viking_room7/computer.rb, line 4
def initialize
  super("computer")
end

Public Instance Methods

get_hand() click to toggle source
# File lib/viking_room7/computer.rb, line 8
def get_hand
  hand = ["r", 'p', 's'].sample
  @hand = hand
end