Files
lab_tic_tac_toe/notes.md
2026-04-28 11:15:14 -04:00

1.2 KiB

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

Determining which actions are available at a particular state

Showing the board

Choosing which action to play on a turn

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?

TTTGame checks to see if the game is over with the is_over method using board_is_full and check_winner.

TTTGame checks to see what game actions are avalable with the get_actions method.

TTTView prints board in method get_action with the method print_board.

TTTHumanPlayer chooses the next action with the choose_action method.