Cleanup bot code.
[poker.git] / p2.py
diff --git a/p2.py b/p2.py
deleted file mode 100755 (executable)
index 6377776..0000000
--- a/p2.py
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/usr/bin/python
-import sys
-import os
-
-IN, OUT = sys.stdin, sys.stdout
-
-FOUT  = open("test_anyPair.txt",'w')
-allin = False
-
-while True:
-   std_in = IN.readline().strip()
-   if std_in:
-        std_in = std_in.split(' ')
-        try   : 
-            tag  = std_in[0]
-            type = std_in[1]
-            data = std_in[2:]
-        except: 
-            FOUT.write(str(std_in))
-            tag  = std_in[0]
-
-        #FOUT.write(tag+' '+type+' '+str(data)+' '+'\n')
-
-        if tag == "MOVE": 
-            # You must return a valid bet here
-            if allin: OUT.write("A\n")
-            else    : OUT.write("f\n")
-            OUT.flush()
-            allin = False
-
-        elif tag == "INFO" and type == "HOLE":
-            # Handle new information
-            # Save info to a file and go all in on any pair
-            h1, h2 = data[-1], data[-2]
-
-            if h1[0] == h2[0] and h1[0]=="A":  allin = True
-
-                
-            
-
-            
-        
-
-
-
-