Class: RPSGame::Computer

Inherits:
Object
  • Object
show all
Defined in:
lib/rps_game/computer.rb

Instance Method Summary collapse

Instance Method Details

#random_moveObject

Generate a random number to indicate the random item



4
5
6
# File 'lib/rps_game/computer.rb', line 4

def random_move
  1 + rand(3)
end