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

Method remove

Checker_game_by_dz/modules/checker_board.py:92–99  ·  view source on GitHub ↗
(self, pieces)

Source from the content-addressed store, hash-verified

90 return moves
91
92 def remove(self, pieces):
93 for piece in pieces:
94 self.board[piece.row][piece.col] = 0
95 if piece != 0:
96 if piece.color == black:
97 self.black_l -= 1
98 else:
99 self.white_l -= 1
100
101 def winner(self):
102 if self.black_l <= 0:

Callers 2

_moveMethod · 0.45
makeVideoFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected