From 2d9aa32758968829c0351e84887e9277d8c1697d Mon Sep 17 00:00:00 2001 From: rtz19970824 <1289226405@qq.com> Date: Sun, 24 Dec 2017 14:41:40 +0800 Subject: [PATCH] change all copy to deepcopy --- AlphaGo/go.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AlphaGo/go.py b/AlphaGo/go.py index 15fc5c6..55f5a4a 100644 --- a/AlphaGo/go.py +++ b/AlphaGo/go.py @@ -99,7 +99,7 @@ class Go: def _check_global_isomorphous(self, history_boards, current_board, color, vertex): repeat = False - next_board = copy.copy(current_board) + next_board = copy.deepcopy(current_board) next_board[self._flatten(vertex)] = color self._process_board(next_board, color, vertex) if next_board in history_boards: