Slowed down for the benefit of the real vending machine.
[zanchey/dispense2.git] / sql-edition / servers / VendServer.py
index 861f7c9..fa16f45 100755 (executable)
@@ -183,7 +183,7 @@ class Idler:
 
 def cookie(v):
        seed(time())
-       messages = ['  WASSUP! ', 'PINK FISH ', ' SECRETS ']
+       messages = ['  WASSUP! ', 'PINK FISH ', ' SECRETS ', '  ESKIMO  ', ' FORTUNES ', 'MORE MONEY']
        choice = int(random()*len(messages))
        msg = messages[choice]
        left = range(len(msg))
@@ -200,7 +200,7 @@ def cookie(v):
                                else:
                                        s += chr(int(random()*26)+ord('A'))
                                reveal += 1
-                               reveal %= 53
+                               reveal %= 17
                        else:
                                s += msg[i]
                v.display(s)

UCC git Repository :: git.ucc.asn.au