Permalink
Browse files

Remove extra conditional statement

  • Loading branch information...
edgenard committed Apr 2, 2018
1 parent 1d39354 commit 0c72024084305f52b287aa0cdbc88fffa3c0d9f8
Showing with 0 additions and 3 deletions.
  1. +0 −3 tic-tac-toe/tic_tac_toe.rb
@@ -14,9 +14,6 @@ def best_move_for(player)
SQUARES_ON_BOARD.each do |square|
if square_unoccupied?(square)
move = square if winning_move?(square, player)
end

if square_unoccupied?(square)
move = square if move == NO_MOVE
end
end

0 comments on commit 0c72024

Please sign in to comment.