MCPcopy Index your code
hub / github.com/ndleah/python-mini-project / reset_board

Method reset_board

Othello-Reversi-Game/Board.py:206–213  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

204 print(self.board)
205
206 def reset_board(self) -> None:
207 self.board.fill(Board.EMPTY)
208
209 # initiliasing the centre squares
210 self.board[3, 3] = self.board[4,4] = Board.WHITE
211 self.board[3, 4] = self.board[4,3] = Board.BLACK
212
213 self.black_disc_count = self.white_disc_count = 2

Callers 1

main.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected