Permalink
Browse files

Merge pull request #2 from SenikTony/tony_tic_tac_toe

Поправил методы finished? и has_turns? (Locke23rus)
  • Loading branch information...
Locke23rus committed Jun 26, 2012
2 parents 5b9d61d + 1ed59f2 commit 35c88ad336193aa6e366aecf96fb43e43b5b2a1a
Showing with 2 additions and 10 deletions.
  1. +2 −10 lib/tic_tac_toe/game.rb
View
@@ -25,19 +25,11 @@ def has_winner?
end
def finished?
- if (has_winner? || !has_turns?)
- true
- else
- false
- end
+ has_winner? || !has_turns?
end
def has_turns?
- if turns_left > 0
- true
- else
- false
- end
+ turns_left > 0
end
def print_turns

0 comments on commit 35c88ad

Please sign in to comment.