generated from mwc/lab_tic_tac_toe
Overwheming at first, and get used to codes slowly. Stopping multiple times and asking questions and making notes on things I don't understand right away.
This commit is contained in:
parent
de7adf81d8
commit
2d43238040
9
notes.md
9
notes.md
|
@ -6,12 +6,21 @@ Which class is responsible for each of the following behaviors?
|
||||||
For each, explain how the behavior is accomplished.
|
For each, explain how the behavior is accomplished.
|
||||||
|
|
||||||
### Checking to see whether the game is over
|
### 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
|
### Determining which actions are available at a particular state
|
||||||
|
TTTGame()
|
||||||
|
It check the location of the empty spot of the board.
|
||||||
|
|
||||||
### Showing 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
|
### 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
|
## Checkpoint 2 Notes
|
||||||
|
|
Loading…
Reference in New Issue