debug
This commit is contained in:
parent
7d70aa7900
commit
762b1a2dbb
1 changed files with 3 additions and 5 deletions
|
@ -113,11 +113,9 @@ class Draw:
|
|||
sqy = 7 - sqy
|
||||
else:
|
||||
sqx = 7 - sqx
|
||||
for i in range(8):
|
||||
self._invert_pixel(sqx * 8 + i, sqy * 8)
|
||||
self._invert_pixel(sqx * 8 + i, sqy * 8 + 7)
|
||||
self._invert_pixel(sqx * 8, sqy * 8 + i)
|
||||
self._invert_pixel(sqx * 8 + 7, sqy * 8 + i)
|
||||
for i in range(7):
|
||||
self._invert_pixel(sqx * 8 + i, sqy * 8) #0,0 - 7,0
|
||||
self._invert_pixel(sqx * 8 + i, sqy * 8 + 7) # 0,7 - 7,7
|
||||
|
||||
def draw_board(self, board: chess.Board, player_color: chess.Color):
|
||||
self._graphics.fill_rect(0, 0, self.BOARD_SIZE, self.BOARD_SIZE, 0)
|
||||
|
|
Reference in a new issue