Lines Matching refs:col
66 def move(self, row, col):
68 self.sticks[row] = col
69 self.game.view.notify_move(row, col, maxspalte, self.player)
76 row, col = computerzug(self.sticks)
77 self.move(row, col)
83 def notify_move(self, row, col):
84 if self.sticks[row] <= col:
86 self.move(row, col)
90 def __init__(self, row, col, game):
93 self.col = col
95 x, y = self.coords(row, col)
104 def coords(self, row, col):
105 packet, remainder = divmod(col, 5)
113 self.game.controller.notify_move(self.row, self.col)
129 for col in range(MAXSTICKS):
130 self.sticks[(row, col)] = Stick(row, col, game)
149 for col in range(self.model.sticks[row]):
150 self.sticks[(row, col)].color(SCOLOR)
152 for col in range(self.model.sticks[row], MAXSTICKS):
153 self.sticks[(row, col)].color("white")
157 def notify_move(self, row, col, maxspalte, player):
160 for s in range(col, maxspalte):
167 for s in range(maxspalte-1, col-1, -1):
197 def notify_move(self, row, col):
201 self.game.model.notify_move(row, col)