Ejemplo n.º 1
0
 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()        
Ejemplo n.º 2
0
    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()
Ejemplo n.º 3
0
 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)]
     ]
Ejemplo n.º 4
0
 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)]]
Ejemplo n.º 5
0
 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()
Ejemplo n.º 6
0
 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()