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

Method turnCheck

projects/Chess/main.py:622–627  ·  view source on GitHub ↗
(self, i, j)

Source from the content-addressed store, hash-verified

620 self.selectY = None
621
622 def turnCheck(self, i, j):
623 global grid
624 if self.turn == 1:
625 return grid[i][j] == 0 or grid[i][j].isupper()
626 else:
627 return grid[i][j] == 0 or grid[i][j].islower()
628
629 def move(self, x1, y1, x2, y2):
630 global grid, validMoves

Callers 1

eventMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected