Design tic-tac-toe
easy 70 minModel a game everybody knows: marks on a grid, turns, a full line wins.
Watch lesson4:32
What each level should show
The same question is judged differently for mid, senior and staff.
Expectations
The same question at four levels
Junior
Must show
- Correct rules with diagonals and draw
- Refuses taken squares
- No input inside the rules
Will be probed on
- Wrong turn
- Size 4
- Why not a Cell class?
Stands out
Finds the order of win and full alone.
Mid
Must show
- Owners of rules
- Win check from the last move or with counters
- Undo with opposites
Will be probed on
- Undo after a win
- Refused move leaves no trace
- k in a row
Stands out
Says why counting is right and when it is not.
Senior
Must show
- Players as untrusted callers
- A lock for each game
- Moves as the truth
Will be probed on
- Minimax and its size
- Two servers
- Three players
Stands out
Chooses the simpler design and defends it with the requirement.
Staff
Must show
- Where the next change is likely, and why there is a seam
- Tests that can be red
- What to refuse to build
Will be probed on
- A general game engine
- Who owns scores
- How to prove undo
Stands out
Plants bugs in their own code to judge the test.