Exemplo n.º 1
0
    def __init__(self):
        self.MaxCount = 4
        self.state = Type.RoomState.wait
        self.threeModeCount = 0
        self.threeModeUsers = [""] * 4
        self.threeModeIndex = [-1] * 4
        self.users = []
        self.trump_type_who_call_fast = [-1] * 7
        self.bridge = Poker.Bridge()
        self.callFirst = -1
        self.nextuser = -1
        self.callLast = -1

        # for observer
        self.callsRaw = [""] * 4
        self.playsRaw = [""] * 4
        self.boutsWinRecord = ""
        self.attackIndex = [-1] * 2
        self.attackWinNumber = 7
        self.attackTeam = ''
        self.attackScore = 0
        self.defenseTeam = ''
        self.defenseScore = 0
        self.flowerCountRecord = [0] * 4
        self.playsPokerHand = [[] for i in range(4)]
Exemplo n.º 2
0
	def __init__(self):
		self.MaxCount = 4 
		self.state = Type.RoomState.wait
		self.threeModeCount = 0
		self.threeModeUsers = [""] * 4
		self.threeModeIndex = [-1] * 4
		self.callFirst = -1
		self.users = [""] * 4
		self.sockets = []
		self.trump_type_who_play_fast = [-1] * 7
                self.trump_type_who_call_fast = [-1] * 7
		self.bridge = Poker.Bridge()