def __init__(self,ui,name,icon1,icon2,pos,board): self.ui = ui self.name = name self.icon1 = icon1 self.icon2 = icon2 self.pos = pos self.board = board self.chooseMethod = Action.manual() self.pickMethod = Action.playerOnePick(self.ui,self.icon2) if self.name == "player1" else Action.playerTwoPick(self.ui,self.icon2)
def __init__(self,ui,name,icon1,icon2,pos,board,level): self.ui = ui self.name = name self.icon1 = icon1 self.icon2 = icon2 self.pos = pos self.board = board self.level = level if level == 1: self.chooseMethod = Action.random() self.pickMethod = Action.playerOnePick(self.ui,self.icon2) if self.name == "player1" else Action.playerTwoPick(self.ui,self.icon2) self.own_plate_index = 0 if self.name == "player1" else 7 self.own_bowl_index = 6 if self.name == "player1" else 13 self.oppo_plate_index = 7 if self.name == "player1" else 0 self.oppo_bowl_index = 13 if self.name == "player1" else 6