Skip to content

Commit

Permalink
changed order of conditional to be order of teaching
Browse files Browse the repository at this point in the history
  • Loading branch information
brntbeer committed Nov 10, 2012
1 parent ae116c1 commit f0b7686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shoes/connect-four/connect-four-2.md
Expand Up @@ -176,7 +176,7 @@ methods (diagonal, horizontal, vertical).]

#check if the map is solved
def solved?(color)
if horizontal_win(color) || vertical_win(color)
if vertical_win(color) || horizontal_win(color)
return true
else
return false
Expand Down
2 changes: 1 addition & 1 deletion shoes/connect-four/connect-four-final.rb
Expand Up @@ -41,7 +41,7 @@

#check if the map is solved
def solved?(color)
if horizontal_win(color) || vertical_win(color)
if vertical_win(color) || horizontal_win(color)
return true
else
return false
Expand Down

0 comments on commit f0b7686

Please sign in to comment.