class Testownik::ComputerPlayer
Attributes
choice[R]
Public Class Methods
new()
click to toggle source
# File lib/testownik/ComputerPlayer.rb, line 6 def initialize @choice = choice end
Public Instance Methods
get_decision()
click to toggle source
# File lib/testownik/ComputerPlayer.rb, line 10 def get_decision @choice = ["p","r","s"][rand(3)] end