예제 #1
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)]
     ]
예제 #2
0
 def update(self, refresh_gui=True, squares_to_hilite=None):
     self.board_position = self.getboard()
     self.cap[BLACK] = engine.getcaptured(BLACK)
     self.cap[WHITE] = engine.getcaptured(WHITE)
     if refresh_gui:
         self.refresh_screen(squares_to_hilite=squares_to_hilite)
예제 #3
0
파일: board.py 프로젝트: xshogi/gshogi
 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)]]
예제 #4
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()
예제 #5
0
파일: board.py 프로젝트: xshogi/gshogi
 def update(self, refresh_gui=True, squares_to_hilite=None):
     self.board_position = self.getboard()
     self.cap[BLACK] = engine.getcaptured(BLACK)
     self.cap[WHITE] = engine.getcaptured(WHITE)
     if refresh_gui:
         self.refresh_screen(squares_to_hilite=squares_to_hilite)