← Questions

2048 game with move, merge and game-over detection

0
GleanCodingLast asked Oct 2026

A coding interview question asked in Glean's coding round, last asked Oct 2026. It tests simulation, matrix and games.

Implement the move logic of the game 2048. The board is a 4 x 4 grid; each cell is 0 (empty) or a tile holding a power of two.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Glean · Coding · Last asked Oct 2026Live coding, usually two rounds

What it tests

simulation · matrix · games

Your code and the AI tutor open when you unlock this question.