From 1fbc9eb81d552cf4fd4a7c12760da1f077838b58 Mon Sep 17 00:00:00 2001 From: Bernard Blackham Date: Sun, 27 Jun 2004 20:59:33 +0000 Subject: [PATCH] Slowed down for the benefit of the real vending machine. --- sql-edition/servers/VendServer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.20.1