Skip to content

Commit

Permalink
RED middle row
Browse files Browse the repository at this point in the history
  • Loading branch information
matatk committed Jul 30, 2014
1 parent c1bfcac commit 7d21444
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nac.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ def test_more_than_complete_top_row_is_win():
moves = [0, 1, 2, 3]
assert is_win(moves) is True

def test_complete_middle_row_is_win():
moves = [3, 4, 5]
assert is_win(moves) is True


def is_win(moves):
top_row = set([0, 1, 2])
Expand Down

0 comments on commit 7d21444

Please sign in to comment.