This was an Asana technical phone screen with a board-game style coding problem. The question was not algorithmically difficult, but it required carefully modeling legal moves, blocked cells, danger zones, and the losing condition. I passed the round, although the overall interview experience still felt negative.
Interview Details
Interview Questions Details
Coding — Safe Moves for a Snail Piece: The problem was basically a compact game-logic simulation. There is a 2D board with one snail piece, and the snail moves like a chess king: exactly one cell in any of the eight directions. The catch is that the snail cannot capture, so it can only move to empty cells, and it also cannot end its turn on a square marked as dangerous. The task was to return all safe legal moves from the current position.
Board Rules and Losing Condition: The board uses "S" for the snail, "." for an empty cell, and any other character as an occupied square. The second function asks whether the snail has lost. The important nuance is that having no legal moves is not enough by itself; the snail only loses if it is currently on a dangerous square and has no safe move to escape.