W33 // CAPSTONE: COMPUTER, WIN, SAVE
MAY 5 · Ch 13 Sec 10-12 · DUE: Complete playable game
This week's deckPPTX
// RUN OF SHOW (8:45-10:15)
8:45
Stand-up: last week's deliverable graded, questions answered
9:20
At the keyboard: guided type-along
9:45
Build time: assignment or project work
10:10
Close: commit, push, and preview next week's reading
// THE POINT THIS WEEK
The computer's turn. Win and loss as state rules. Save and load.
// TALKING POINTS
The computer fires back
- The opponent picks targets: random first, smarter if time allows
- Win detection: all ship cells hit; check after every shot
- Save game state to localStorage so a refresh isn't a surrender
Finishing discipline
- Playable beats feature-rich; a finished game is the assignment
- Freeze features, fix bugs, commit at every working state
- The change log tells the story of what the plan learned
// LINKS