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

Method resetColor

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

Source from the content-addressed store, hash-verified

508 self.colors[i[0]][i[1]] = (255, 121, 164)
509
510 def resetColor(self):
511 for i in range(8):
512 for j in range(8):
513 if i % 2 == j % 2:
514 self.colors[i][j] = (200, 200, 200)
515 else:
516 self.colors[i][j] = (30, 30, 30)
517
518
519board = Board()

Callers 2

eventMethod · 0.80
moveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected