debug
This commit is contained in:
parent
7d70aa7900
commit
762b1a2dbb
|
@ -113,11 +113,9 @@ class Draw:
|
||||||
sqy = 7 - sqy
|
sqy = 7 - sqy
|
||||||
else:
|
else:
|
||||||
sqx = 7 - sqx
|
sqx = 7 - sqx
|
||||||
for i in range(8):
|
for i in range(7):
|
||||||
self._invert_pixel(sqx * 8 + i, sqy * 8)
|
self._invert_pixel(sqx * 8 + i, sqy * 8) #0,0 - 7,0
|
||||||
self._invert_pixel(sqx * 8 + i, sqy * 8 + 7)
|
self._invert_pixel(sqx * 8 + i, sqy * 8 + 7) # 0,7 - 7,7
|
||||||
self._invert_pixel(sqx * 8, sqy * 8 + i)
|
|
||||||
self._invert_pixel(sqx * 8 + 7, sqy * 8 + i)
|
|
||||||
|
|
||||||
def draw_board(self, board: chess.Board, player_color: chess.Color):
|
def draw_board(self, board: chess.Board, player_color: chess.Color):
|
||||||
self._graphics.fill_rect(0, 0, self.BOARD_SIZE, self.BOARD_SIZE, 0)
|
self._graphics.fill_rect(0, 0, self.BOARD_SIZE, self.BOARD_SIZE, 0)
|
||||||
|
|
Reference in New Issue