Nash AI·Software Engineer·Onsite - System Design / Architecture
- Design an object-oriented Minesweeper game. The board is a grid of cells, and each cell has a probability of being a mine. Walk through how per-cell probabilities drive the initial mine layout, define the core classes and their responsibilities, describe how they relate to each other, and specify public APIs for printing the board and handling a user click. Also cover state transitions on a click, how you handle invalid or duplicate clicks, and how your design supports maintainability and testing.
“I started with Cell, Board, Game and felt good about that for about two minutes.”