From fd17a33386300dc952da0f54db2c2ab03d497bea Mon Sep 17 00:00:00 2001 From: wuliaozhiji Date: Sat, 19 Feb 2022 15:08:42 -0500 Subject: [PATCH] [O] Make insert_move_sequence_helper private --- assignments/A2/a2_game_tree.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assignments/A2/a2_game_tree.py b/assignments/A2/a2_game_tree.py index a99698c..5e8cdb5 100644 --- a/assignments/A2/a2_game_tree.py +++ b/assignments/A2/a2_game_tree.py @@ -166,9 +166,9 @@ class GameTree: >>> sub3.get_subtrees() [] """ - self.insert_move_sequence_helper(moves, 0) + self._insert_move_sequence_helper(moves, 0) - def insert_move_sequence_helper(self, moves: list[str], index: int) -> None: + def _insert_move_sequence_helper(self, moves: list[str], index: int) -> None: # All moves inserted, finish if index == len(moves): return @@ -181,7 +181,7 @@ class GameTree: self.add_subtree(sub) # Insert move - sub.insert_move_sequence_helper(moves, index + 1) + sub._insert_move_sequence_helper(moves, index + 1) ############################################################################ # Part 2: Complete Game Trees and Win Probabilities