From 9f39068cc2ab3d6cc28c364b984c6e5c445729fc Mon Sep 17 00:00:00 2001 From: Uzair Mohammed Date: Mon, 26 Feb 2024 23:14:27 -0800 Subject: [PATCH] Added comments to tictactoe.py --- hw1/tictactoe/tictactoe.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hw1/tictactoe/tictactoe.py b/hw1/tictactoe/tictactoe.py index 84dd370..e7385c9 100644 --- a/hw1/tictactoe/tictactoe.py +++ b/hw1/tictactoe/tictactoe.py @@ -165,7 +165,9 @@ def minimax(board): best_action = action return best_action - + """ + Helper function lol + """ def max_value(board): if terminal(board): return utility(board) @@ -174,7 +176,9 @@ def max_value(board): v = max(v, min_value(succ(board, action))) return v - + """ + Another helper function lol + """ def min_value(board): if terminal(board): return utility(board)