Browse files

Поправил методы finished? и has_turns? в соответсвиии с рекомендациям…

…и Locke23rus
  • Loading branch information...
1 parent e40ca11 commit 1ed59f25644f4b6e4b055bf6e678caea782c0175 @SenikTony SenikTony committed Jun 26, 2012
Showing with 2 additions and 10 deletions.
  1. +2 −10 lib/tic_tac_toe/game.rb
View
12 lib/tic_tac_toe/game.rb
@@ -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 1ed59f2

Please sign in to comment.