programming-examples/ruby/Basics/basic_game.rb

20 lines
270 B
Ruby
Raw Normal View History

2019-11-18 14:44:36 +01:00
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) }