MCPcopy Create free account
hub / github.com/geekcomputers/Python / draw

Method draw

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

Source from the content-addressed store, hash-verified

58 self.board[row].append(0)
59
60 def draw(self, window):
61 self.draw_cubes(window)
62 for row in range(rows):
63 for col in range(cols):
64 piece = self.board[row][col]
65 if piece != 0:
66 piece.draw(window)
67
68 def get_valid_moves(self, piece):
69 moves = {}

Callers

nothing calls this directly

Calls 1

draw_cubesMethod · 0.95

Tested by

no test coverage detected