+ 6

How is your daily routine? Write through code.

This is a good way to practice your programming skills. Can you beat this challenge?

11th Dec 2016, 2:14 AM
Silas Junior
Silas Junior - avatar
3 Réponses
+ 7
while (time.hour > 8 && time.hour < 22) { if (food.isReady()) { System.sleep(30 * 3600 * 1000); } Brain.sendMessage("Wtf am I doing with my life"); if(Brain.response() == null) continue; else break; } System.exit(0);
11th Dec 2016, 2:33 AM
Nikunj Arora
Nikunj Arora - avatar
+ 2
while(age<21) { if(!me.isIll) { me.getUp(tooEarly); me.goSchool(); if(me.isBored) me.SleepInHistoryClass(25 minutes); me.getHome(buss); me.beHappy(aLot); me.startWritingHomework(); me.stopWritingHomework(); me.writeCode(c#); mother.shout(); me.finishHomework; me.feedTheDog(); dog.beSuperHyperMegaHappy(); me.Sleep(); } else me.notGoSchool(); }
11th Dec 2016, 4:36 PM
Dimitiko
+ 2
var hour = 4.00;; function wakeUp() { var awake = true; var outOfBed = true; } function bath() { for(hour=4.10; hour <= 4.30; ++hour) { var showerOpened = true; } var showerOpened = false; } function breakfast() { var food[] Array{"Bread", "Cookies", "Cereal"} var liquid[] Array{"Juice", "Water", "Milk"}; } var eat = food[2]; var with = liquid[2]; function goToWork() { var vehicle[] Array{"Car", "Train", "Bus"}; var goWith = vehicle[0]; for(distance=50; distance>=0; --distance) { var keepDriving = true; } var keepDiriving = false; } function getInTheClassRoom() { var me = "out"; if(me=="inside") { alert("Good morning, class!"); } else { alert("Get inside the class room!"); } } function drive() { } function goBackHome() { var classTimeIsOver = true; var me = "out"; drive(); } function sleep() { var outOfBed = false; var me = "zzz"; } if(hour == 4.00) { wakeUp(); } bath(); if(hour == 4.40) { breakfast(); } if(hour == 6.00) { goToWork(); } if(hour==7.00) { getInTheClassRoom(); } if(hour==12.00) { goBackHome(); } if(hour==8.00) { sleep(); }
13th Dec 2016, 7:25 PM
David Warden
David Warden - avatar