From 93ff929a44197f6cc59c959c8c580932b72728df Mon Sep 17 00:00:00 2001 From: Lauren Dawnkaski Date: Sat, 30 Nov 2024 15:35:18 -0500 Subject: [PATCH] checkpoint 1 It was a bit overwhelming to read this much code that someone else has written. A strategy that made this easier for me was to break up the larger code into smaller sections and seeing how each one interacted with each other. --- notes.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/notes.md b/notes.md index 67cc9f6..d0bb1d7 100644 --- a/notes.md +++ b/notes.md @@ -6,12 +6,16 @@ Which class is responsible for each of the following behaviors? For each, explain how the behavior is accomplished. ### Checking to see whether the game is over +ttt game is responsible for this. Looking at the definition is_over it checks to see if the board is full and also if either player 1 or 2 won based on the x's and o's. If this happens then the game is over. ### Determining which actions are available at a particular state +Again, this is ttt game. Under the definition of get_actions it returns a list of indices of empty spaces. It checks the board and sees the spaces that are empty which then shows possible actions for the player. ### Showing the board +ttt view is respoinsible for this one. it has a definition that says print_board. It divides the board into 3 rows of 3 and after each row it prints a divider. ### Choosing which action to play on a turn +If we are playing with just humans which at this point we are, ttt human player is responsible. choose_action gets the list of available actions and then prompts the human to choose an action. ## Checkpoint 2 Notes