Low-level design
Object-oriented design for interviews: the framework, design principles and patterns, concurrency, and problem breakdowns you can practice in the code runner.
Object-oriented design for interviews: the framework, design principles and patterns, concurrency, and problem breakdowns you can practice in the code runner.
11 write-ups
| Title | Difficulty |
|---|---|
| Design Chess Design a two-player chess game with piece movement rules, move validation that respects check, checkmate and stalemate detection, and a move history with undo. | Hard |
| Design Connect Four Design Connect Four with gravity drops through column heights, turn checks, wins in four directions found by walking out from the last disc, draws, and room for undo and other board sizes. | Easy |
| Design Tic-Tac-Toe Design tic-tac-toe on an N by N board with turn checks, rejected moves, wins and draws, and a win check that costs O(1) per move thanks to running line counters. | Easy |
| Design a Board Game Framework Design one engine that runs many turn-based games, with Ludo and Uno as plug-in rules, a shared turn check and move log, online rooms, and replays rebuilt from the moves. | Medium |
| Design Battleship Design two-player Battleship with validated ship placement, a placement-then-battle game phase, shots that report miss, hit and sunk in constant time, and room for a computer opponent. | Easy |
| Design Blackjack Design a blackjack table with a shoe of cards, hands that count aces correctly, betting and turn phases, fixed dealer rules, 3 to 2 payouts, and a path to an online table with many seats. | Medium |
| Design Game Matchmaking Design a matchmaker that groups players by mode (1v1, 2v2, 4v4), region and level, joins an open lobby or creates one, starts full games and splits them into balanced teams. | Medium |
| Design Minesweeper Design Minesweeper: mine placement kept outside the game, neighbor counts, flood reveal with a queue, flags, and win or lose detection with a counter instead of a board scan. | Easy |
| Design Snake Game Design the classic Snake game on a grid: a body stored as a queue plus a set, food that appears one piece at a time, growth, wall and self collisions, and the score after every move. | Easy |
| Design Snakes and Ladders Design Snakes and Ladders with one jump map for snakes and ladders, an injected dice strategy, turn order for any number of players, extra turns on a six, and exact landing on the last cell. | Easy |
| Design Tetris Design Tetris with seven piece shapes, rotation that stays in place, collision checks, gravity and locking, line clears with scoring, and a game loop that keeps time out of the rules. | Medium |