change all copy to deepcopy

This commit is contained in:
rtz19970824 2017-12-24 14:41:40 +08:00
parent 77e8aa3c28
commit 2d9aa32758

View File

@ -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: