From: Bernard Blackham Date: Sun, 27 Jun 2004 20:59:33 +0000 (+0000) Subject: Slowed down for the benefit of the real vending machine. X-Git-Tag: IMPORT-FROM-UCCCVS~120 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=ec5bc2b89c6cf246cd6dd534b5bf8894d582a202;p=uccvend-vendserver.git Slowed down for the benefit of the real vending machine. --- diff --git a/sql-edition/servers/VendServer.py b/sql-edition/servers/VendServer.py index 861f7c9..fa16f45 100755 --- a/sql-edition/servers/VendServer.py +++ b/sql-edition/servers/VendServer.py @@ -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)