Design
Battleship Game
Design the Battleship board game supporting ship placement, turn-based firing, and win detection.
01 - Why interviewers ask this
It tests whether you can design clean turn-based state and efficient occupancy checks (Set-based lookups) instead of scanning the whole grid on every shot.
02 - Where this system exists in the real world
You interact with this design every day.
Digital Battleship and grid-based strategy games
Turn-based multiplayer game engines
Grid-occupancy algorithms in game development
03 - What you'll master
Solve this once. Know it forever.
Validate ship placement efficiently
Model hit/miss/sunk detection per ship
Manage strict two-player turn alternation
04 - What you'll design
6 functional · 2 non-functional requirements.
Place ships of varying sizes on a grid without overlap
5 more requirements inside
Sign in to unlock the full brief and start designing
05 - Companies that ask this
You may face this exact question in your next interview.
Ready?
Open the canvas.
Design it yourself.
See all requirements, use staged hints, run your code, and compare with community discussions - all on the same canvas.
Start Solving