Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix bug in right diagonal logic

  • Loading branch information...
medwards1771 committed Apr 21, 2018
1 parent b89508c commit 6709dc4f3f485f0e83ea2356f18acc56bfd57534
Showing with 1 addition and 1 deletion.
  1. +1 −1 tic-tac-toe/lib/board.rb
@@ -56,7 +56,7 @@ def winning_left_diagonal(position)
def winning_right_diagonal(position)
position_occupied?(position) &&
mark_at(position) == mark_at(position + 2) &&
mark_at(position + 4) == mark_at(position + 4)
mark_at(position + 2) == mark_at(position + 4)
end

def position_unoccupied?(position)

0 comments on commit 6709dc4

Please sign in to comment.
You can’t perform that action at this time.