Cleanup bot code.
[poker.git] / bots / p2.py
diff --git a/bots/p2.py b/bots/p2.py
new file mode 100755 (executable)
index 0000000..49c348d
--- /dev/null
@@ -0,0 +1,17 @@
+#!/usr/bin/python
+
+import logging
+
+from hole_bot import HoleBot
+
+
+class PairBot (HoleBot):
+    """Go all in on any pocket pair.
+    """
+    def _process_hole(self, hole, state):
+        state['all_in'] = hole[0][0] == hole[1][0]
+
+
+if __name__ == '__main__':
+    b = PairBot()#log_level=logging.INFO)
+    b.run()