# 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() It checks if the board if full or player x won or player 0 won. ### Determining which actions are available at a particular state TTTGame() It check the location of the empty spot of the board. ### Showing the board TTTView Each group of three items creats one row to print, each item is seperated by |, then each rwo is seperated by divider ### Choosing which action to play on a turn TTTview() and TTTPlayer() Get the list of avaiable actions, then ask the user to choose wihch action he wants to take. ## 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 | | | | 6 for the first case becase I can win right away. 6 for the second case becase I need to stop the other player winning. 1 for the third case becase I have two possible winning senario with this choice. 5 for the fourth case becase the other player is forced to put 9, then I will the next turn. ### 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? reward is zero, it means that no one can win unless someone make a mistake.