6 game interview questions, asked at Airbnb, Amazon, Databricks and 4 more companies. Last asked Sep 2026.
+1
Connect Four game engine with win detectionCodingImplement a two-player game of Connect Four. The board has rows rows and cols columns (default 6 x 7). Players "A" and "B" alternate turns, and "A" moves first. On a turn, a…
Last asked Sep 2026
Reversi move simulation with captures in 8 directionsCodingImplement one move of the board game Reversi (also sold as Othello). You get an n x n board as a list of lists of characters. Each cell is 'B' (black), 'W' (white) or '.' (empty)…
Last asked Sep 2026
Four in a row: check a winning moveCodingTwo players, "a" and "b", play on a rectangular grid. board is a 2D list of strings; each cell is "a", "b", or "" (empty). Implement: move = (row, col) is the cell where player…
Last asked Sep 2026
Backend for a game of checkersCodingBuild the backend of a checkers game under time pressure: board state, legal moves, captures and the win condition, with a data model you can explain. A working core matters more…
Last asked Feb 2026
Dot grid game winnerCodingTwo players play a dots-and-boxes style game on a 9 x 9 grid of dots. The grid has 8 x 8 = 64 unit squares ("boxes"). Rows and columns are numbered 0 to 8. You are given moves, a…
Drop a Tetris piece and clear full rowsCodingImplement a single step of a Tetris-like game. You get three inputs: - background: an H x W grid of 0/1. 1 is an occupied cell, 0 is empty. Row 0 is the top. - block: an h x w…