summaryrefslogtreecommitdiff
path: root/dealconvert
diff options
context:
space:
mode:
Diffstat (limited to 'dealconvert')
-rw-r--r--dealconvert/dto.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/dealconvert/dto.py b/dealconvert/dto.py
new file mode 100644
index 0000000..e51f052
--- /dev/null
+++ b/dealconvert/dto.py
@@ -0,0 +1,22 @@
+POSITION_NORTH = 0
+POSITION_EAST = 1
+POSITION_SOUTH = 2
+POSITION_WEST = 3
+SUIT_SPADES = 0
+SUIT_HEARTS = 1
+SUIT_DIAMONDS = 2
+SUIT_CLUBS = 3
+
+class Deal(object):
+ event = ''
+ number = None
+ vulnerable = None
+ dealer = None
+ hands = None
+
+ def __init__(self):
+ self.hands = [[[],[],[],[]],
+ [[],[],[],[]],
+ [[],[],[],[]],
+ [[],[],[],[]]]
+ self.vulnerable = {'NS': False, 'EW': False}