Skip to content
Browse files

Minor output tweak

  • Loading branch information...
1 parent adf3165 commit 993d8108f1fbe6b32347ae6b8f2d404d7f10410b @mileskin committed Apr 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 countdown.scala
View
3 countdown.scala
@@ -18,7 +18,7 @@ val totalSeconds = minutes * minute
(1 to totalSeconds).foreach { x =>
val secondsLeft = totalSeconds - x
val message = "%s minutes %s seconds left".format(secondsLeft / minute, secondsLeft % minute)
- print("\r" + " " * 100 + "\r%s".format(message))
+ print("\r" + " " * 100 + "\r%s ".format(message))
Thread.sleep(1000)
if (x == totalSeconds - minute) {
"say dear %s resource, u have 1 minute left".format(client)!
@@ -27,5 +27,6 @@ val totalSeconds = minutes * minute
"say dear %s resource, ur time is up".format(client)!
+println
"toilet --gay time is up"!

0 comments on commit 993d810

Please sign in to comment.
Something went wrong with that request. Please try again.