# 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 TTTGame has a method called is_over which checks if either the board is full, player x won, or player o won is true. ### Determining which actions are available at a particular state TTTGame has a method called get_actions which returns a list of numbers of the empty spaces that a player could choose in their next turn ### Showing the board TTTView has a method print_board which prints the board with its currently available spaces ### Choosing which action to play on a turn TTTView has a method get_action which shows the board and asks the current player for which number box they want to choose (in which that player must type in the number of their choice) ## Checkpoint 2 Notes ### 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?