From 1b7ac788ad9499461b679753236e5ab598da7aec Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 20 May 2019 23:59:46 +0200 Subject: DTO for deal conversion --- dealconvert/dto.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 dealconvert/dto.py (limited to 'dealconvert') 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} -- cgit v1.2.3