Loading…
Loading…
This problem is intentionally small — the interesting part isn't the classes themselves, it's whether your first design accidentally hard-codes "3x3" and "3 in a row" in a way that makes the NxN follow-up painful. Design for the general case from the start.
Design your own solution first — on paper, a whiteboard, or your own IDE — before checking the reference.