Go Down

Topic: well I have amassed enough cool stuff...lets build something! Code help please. (Read 898 times) previous topic - next topic

Nick Gammon

Wasn't that obvious? It needs to make toast.  8)

Are you insane? You need it to (1) deliver a cold beer to your hands, without your having to move from your chair. And then 15 minutes later: goto 1. (oops, used goto).

Rewording without using goto:

Code: [Select]
while (owner_is_sober)
  deliver_beer ();


I hope that deliver_beer() has some affect on owner_is_sober. Otherwise, that's an infinite loop. Not that that's all bad...  8)

Go Up