Class: Computer
Overview
Create a new computer player.
Instance Attribute Summary
Attributes inherited from Player
Instance Method Summary collapse
-
#get_move ⇒ Object
Computer version of get_move.
Methods inherited from Player
Constructor Details
This class inherits a constructor from Player
Instance Method Details
#get_move ⇒ Object
Computer version of get_move
52 53 54 |
# File 'lib/rps_telwell/player.rb', line 52 def get_move rand(1..3) end |