You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
270 B
Ruby
20 lines
270 B
Ruby
5 years ago
|
class Player
|
||
|
# Your code goes here
|
||
|
end
|
||
|
|
||
|
class Game
|
||
|
# Your code goes here
|
||
|
end
|
||
|
|
||
|
game = Game.new("RPS")
|
||
|
|
||
|
players = [
|
||
|
Player.new("John"),
|
||
|
Player.new("Lizzy"),
|
||
|
Player.new("Clair"),
|
||
|
Player.new("Brad"),
|
||
|
15
|
||
|
]
|
||
|
|
||
|
players.each { |player| game.add_player(player) }
|