This question evaluates object-oriented design, modularity, extensibility, and testability in modeling a turn-based, grid-based drop-token game, and is categorized under Software Engineering Fundamentals; it requires both conceptual architecture and practical application thinking.
Design an object-oriented model for a turn-based, grid-based “drop token” board game similar to Connect Four.
Game rules (define these precisely in your design):
rows
and
cols
.
K
consecutive tokens in a line (horizontal, vertical, or diagonal).
Requirements:
Game
,
Board
,
Player
,
Move
,
Rules/WinCondition
).