MCPcopy Index your code
hub / github.com/geekcomputers/Python / draw_cubes

Method draw_cubes

Checker_game_by_dz/modules/checker_board.py:21–27  ·  view source on GitHub ↗
(self, window)

Source from the content-addressed store, hash-verified

19
20 # to design the board
21 def draw_cubes(self, window):
22 window.fill(green)
23 for row in range(rows):
24 for col in range(row % 2, cols, 2):
25 pg.draw.rect(
26 window, yellow, (row * sq_size, col * sq_size, sq_size, sq_size)
27 )
28
29 def move(self, piece, row, col):
30 self.board[piece.row][piece.col], self.board[row][col] = (

Callers 1

drawMethod · 0.95

Calls 1

rectMethod · 0.45

Tested by

no test coverage detected