Machine-coding case studies
Design Tic-Tac-Toe
A clean OO model of a turn-based board game, board, players, moves, and win detection, designed so it generalises to N×N or other grid games. An animated lesson where the diagram draws itself as the design grows.
- Lesson 4 of 6
- Animated diagrams
Sign in with Google or GitHub and you land straight on this page. DSA comes with the all labs plan and every ChaiCode batch.
Machine-coding case studies
What you will learn
- 1. Requirements
- 2. The classes
- 3. Where does win-checking live?
- 4. Extensibility
- 5. A note on modelling
More low-level design
Watch Design Tic-Tac-Toe take shape
Sign in and the lesson opens with its diagram ready to play, and the rest of Machine-coding case studies beside it.
DSA comes with the all labs plan and every ChaiCode batch.