Pārlūkot izejas kodu

Updated to handle Prison Board TWGS. rdfig.net 2002

Steve Thielemann 5 gadi atpakaļ
vecāks
revīzija
771229725c
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      proxy.py

+ 6 - 0
proxy.py

@@ -283,6 +283,12 @@ class Game(protocol.Protocol):
                 self.game = game
                 log.info("Game: {0}".format(self.game))
                 self.observer.emit("user-game", (self.factory.player.user, self.game))
+        elif "Select A or B to Play or Press [Q] To Exit!" in line:
+            game = line[-1]
+            if game >= "A" and game < "Q":
+                self.game = game
+                log.info("Game: {0}".format(self.game))
+                self.observer.emit("user-game", (self.factory.player.user, self.game))            
         elif "Confirmed? (Y/N)? Yes" in line:
             # Ok, here's what we going to do.
             # Set timer for 5 seconds.  If we don't receive anything before that --