Preparing your design workspace

Loading the problem and your saved attempt…

Design a Connect Four Game

Model a two-player game, legal disc placement, turn order, win detection, draw state, and replayable history.

For this exercise, assume that two players alternate dropping discs into columns until one wins, the board fills, or a player attempts an invalid move.

The design must support start a game with two players; drop a disc into a non-full column; detect horizontal, vertical, and diagonal wins; inspect history and final result.

Preserve this invariant: moves alternate between the registered players, a disc occupies one empty cell, and a terminal game accepts no further move. Treat wrong player, invalid column, full column, duplicate request, and move after game completion as explicit outcomes.

Keep unrelated product features, infrastructure, and persistence implementation outside the first version unless a checkpoint asks for them.