Pages: 1 [2]   Go Down
Author Topic: well I have amassed enough cool stuff...lets build something! Code help please.  (Read 834 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Offline Offline
Brattain Member
*****
Karma: 495
Posts: 19035
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Wasn't that obvious? It needs to make toast.  smiley-cool

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:
while (owner_is_sober)
  {
  deliver_beer ();
  }
Logged


Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 631
Posts: 50107
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: 1 [2]   Go Up
Jump to: