change all copy to deepcopy
This commit is contained in:
parent
77e8aa3c28
commit
2d9aa32758
@ -99,7 +99,7 @@ class Go:
|
|||||||
|
|
||||||
def _check_global_isomorphous(self, history_boards, current_board, color, vertex):
|
def _check_global_isomorphous(self, history_boards, current_board, color, vertex):
|
||||||
repeat = False
|
repeat = False
|
||||||
next_board = copy.copy(current_board)
|
next_board = copy.deepcopy(current_board)
|
||||||
next_board[self._flatten(vertex)] = color
|
next_board[self._flatten(vertex)] = color
|
||||||
self._process_board(next_board, color, vertex)
|
self._process_board(next_board, color, vertex)
|
||||||
if next_board in history_boards:
|
if next_board in history_boards:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user