Skip to content
This repository has been archived by the owner on Apr 24, 2019. It is now read-only.


Remove extra conditional statement
Browse files Browse the repository at this point in the history
  • Loading branch information
edgenard committed Apr 2, 2018
1 parent 1d39354 commit 0c72024
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tic-tac-toe/tic_tac_toe.rb
Expand Up @@ -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)

if square_unoccupied?(square)
move = square if move == NO_MOVE
Expand Down

0 comments on commit 0c72024

Please sign in to comment.