diff --git a/lib/game_clock/clock.rb b/lib/game_clock/clock.rb index b6309ea..44982c7 100644 --- a/lib/game_clock/clock.rb +++ b/lib/game_clock/clock.rb @@ -61,8 +61,8 @@ module TAC seconds = format("%02d", time_left.ceil % 60) - return "#{minutes}:#{seconds}" if time_left.round.even? - return "#{minutes}:#{seconds}" if time_left.round.odd? + return "#{minutes}:#{seconds}" if time_left.ceil.even? + return "#{minutes}:#{seconds}" if time_left.ceil.odd? end end end