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

Method Queen

projects/Chess/main.py:85–91  ·  view source on GitHub ↗
(self, x, y, grid)

Source from the content-addressed store, hash-verified

83 return self.vMoves2
84
85 def Queen(self, x, y, grid):
86 r, b = self.Rook(x, y, grid), self.Bishop(x, y, grid)
87 for i in range(len(r)):
88 self.vMoves.append(r[i])
89 for i in range(len(b)):
90 self.vMoves.append(b[i])
91 return self.vMoves
92
93 def Rook(self, x, y, grid):
94 for i in range(x + 1, 8):

Callers 1

generateValidMovesMethod · 0.95

Calls 2

RookMethod · 0.95
BishopMethod · 0.95

Tested by

no test coverage detected