Skip to content

Commit

Permalink
Replaced (player_marks[0], player_marks[1], player_marks[0]) with (*p…
Browse files Browse the repository at this point in the history
…layer_marks, player_marks.first) for readability
  • Loading branch information
lisahamm committed Mar 20, 2015
1 parent 81d97cc commit 2dbac51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/game_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module GameHelpers
def create_game(params)
player_marks = player_marks(params)
TicTacToe::Game.new(player_marks[0], player_marks[1], player_marks[0])
TicTacToe::Game.new(*player_marks, player_marks.first)
end

def player_marks(params)
Expand Down

0 comments on commit 2dbac51

Please sign in to comment.