# Tic Tac Toe notes ## Checkpoint 1 Notes 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 The game class checks if the game is over using the is_over method. ### Determining which actions are available at a particular state The game class also does this through the get_actions method ### Showing the board The view class does this through the print_board method ### Choosing which action to play on a turn The player class contains the choose_action method which allows the player to choose whicn place to play. ## Checkpoint 2 Notes I was able to get the game to correctly determine who the winner was. I understand that there's an array that I'm accessing, and that indexes 0 through 9 correspond to the different spaces on the board starting on the top left and going across the row, then down to the left of the next row, etc. What I do not understand is what state is and why we need to use state["board"][index] to access something on the boare ### TTT Strategy For each of the following board states, if you are playing as X and it's your turn, which action would you take? Why? | O | O | | O | X | X | O | ---+---+--- ---+---+--- ---+---+--- ---+---+--- X | X | | X | X | O | O | | ---+---+--- ---+---+--- ---+---+--- ---+---+--- | | | | O | | | | ### Initial game state You can get the inital game state using game.get_initial_state(). What is the current and future reward for this state? What does this mean?