Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2 from SenikTony/tony_tic_tac_toe

Поправил методы finished? и has_turns? (Locke23rus)
  • Loading branch information...
commit 35c88ad336193aa6e366aecf96fb43e43b5b2a1a 2 parents 5b9d61d + 1ed59f2
@Locke23rus Locke23rus authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.