Class: Computer
Instance Attribute Summary
Attributes inherited from Player
Instance Method Summary collapse
Methods inherited from Player
Constructor Details
This class inherits a constructor from Player
Instance Method Details
#make_choice ⇒ Object
26 27 28 29 30 |
# File 'lib/player.rb', line 26 def make_choice = ["rock", "paper", "scissors"] puts "Player 2 is choosing now" @choice = .sample end |