All problems
Foundational·🎮 Gaming·Zynga · Electronic Arts

Design
Battleship Game

Design the Battleship board game supporting ship placement, turn-based firing, and win detection.

#OOP#State Machine
Start Solving 6F + 2NF requirements inside

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.

01

Validate ship placement efficiently

02

Model hit/miss/sunk detection per ship

03

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

Unlock Requirements

05 -  Companies that ask this

You may face this exact question in your next interview.

Z
Zynga
E
Electronic Arts

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