Method: StudioGame::Game#add_player
- Defined in:
- lib/game_class.rb
#add_player(a_player) ⇒ Object
48 49 50 |
# File 'lib/game_class.rb', line 48 def add_player(a_player) @players.push(a_player) #use @players since @players refers to the array u created in the initialize method end |