Skip to content

Commit

Permalink
improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
wesley974 committed Mar 9, 2017
1 parent ff846b5 commit 7693978
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/user_interface.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# The user interface
class UserInterface
def initialize
trap("INT") {print" received. "; bybye; exit}
trap('INT') { print ' received. '; bybye; exit }
@name = 'Guest'
@board = Scoreboard.new
welcome
Expand Down Expand Up @@ -84,7 +84,7 @@ def check_winner

def countdown(seconds)
seconds.downto(1) do |s|
print s.to_s.rjust(Format::SPACES/2)
print s.to_s.rjust(Format::SPACES / 2)
sleep 1
print "\r"
end
Expand Down

0 comments on commit 7693978

Please sign in to comment.