Created
October 2, 2016 02:39
-
-
Save muloka/7fcc9558999976e64ed6502a795764e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Coffee coffee = new Stimulant('coffee') | |
function code(coffee) { | |
var keep_coding = true | |
while (keep_coding) { | |
if (coffee.Empty) { | |
coffee.Refill() | |
} | |
coffee.Consume() | |
keep_coding = (coffee.refill_count != 0) | |
} | |
} | |
code(coffee) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment