MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / colorBoard

Method colorBoard

projects/Chess/main.py:343–348  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

341 self.colors[i].append((30, 30, 30))
342
343 def colorBoard(self):
344 global surface
345 surface.fill((12, 12, 12))
346 for i in range(8):
347 for j in range(8):
348 pygame.draw.rect(surface, self.colors[i][j], self.sqs[i][j])
349
350 def placePieces(self):
351 global surface, grid

Callers 2

eventMethod · 0.80
main.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected