From eb65c5e692d469a1c75ca8547a7e95af6de9d6d1 Mon Sep 17 00:00:00 2001 From: jbayati Date: Mon, 17 Nov 2025 09:25:31 -0500 Subject: [PATCH] Checkpoint 1: I did not like this experience at all. Reading code written by someone else is difficultto me, most like how I have gone through this class reading someone elses code that's 90% of the way done, it's like being thrown into the deep end. --- notes.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/notes.md b/notes.md index 67cc9f6..b30e644 100644 --- a/notes.md +++ b/notes.md @@ -1,5 +1,6 @@ # Tic Tac Toe notes + ## Checkpoint 1 Notes Which class is responsible for each of the following behaviors? @@ -7,13 +8,23 @@ For each, explain how the behavior is accomplished. ### Checking to see whether the game is over + The game inspects the board for winning patterns + (three identical non-empty marks in any row, column, or diagonal). + It also checks whether there are any empty squares left — if there + are none and there is no winner the result is a draw. + ### Determining which actions are available at a particular state + The function scans the board representation and returns the indices or coordinate pairs for empty cells. + If the state is terminal it returns an empty list. + ### Showing the board + The view module provides formatting and printing utilities that convert the internal state into a nice 3x3 grid + ### Choosing which action to play on a turn - + Scans the board for who went last; giving the next placement opportunity to the person who went before the move that was just played ## Checkpoint 2 Notes ### TTT Strategy