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

Make #winning_row more like other #winning methods

  • Loading branch information...
medwards1771 committed Apr 21, 2018
1 parent da458c9 commit b89508c5c362e263567829062c3ae75ca3b36f75
Showing with 2 additions and 2 deletions.
  1. +2 −2 tic-tac-toe/lib/board.rb
@@ -37,8 +37,8 @@ def winner

def winning_row(position)
position_occupied?(position) &&
mark_at(position) == mark_at(position.next) &&
mark_at(position.next) == mark_at(position.next.next)
mark_at(position) == mark_at(position + 1) &&
mark_at(position + 1) == mark_at(position + 2)
end

def winning_column(position)

0 comments on commit b89508c

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