def __init__(self): self.board_position = self.getboard() self.wcap = engine.getcaptured(WHITE) self.bcap = engine.getcaptured(BLACK) self.pieces = utils.get_pieces_ref() self.move_list = move_list.get_ref()
def __init__(self): self.board_position = self.getboard() self.cap = [ engine.getcaptured(BLACK), engine.getcaptured(WHITE) ] self.cap_label = [ [Gtk.Label() for x in range(9)], [Gtk.Label() for x in range(9)] ]
def __init__(self): self.board_position = self.getboard() self.cap = [engine.getcaptured(BLACK), engine.getcaptured(WHITE)] self.cap_label = [[Gtk.Label() for x in range(9)], [Gtk.Label() for x in range(9)]]
def update(self, refresh_gui=True): self.board_position = self.getboard() self.cap[BLACK] = engine.getcaptured(BLACK) self.cap[WHITE] = engine.getcaptured(WHITE) if refresh_gui: self.refresh_screen()
def update(self, refresh_gui=True): self.board_position = self.getboard() self.wcap = engine.getcaptured(WHITE) self.bcap = engine.getcaptured(BLACK) if refresh_gui: self.refresh_screen()