0 day streak
Anonymous · shared experience20 Dec 2025 · 9 views

Shopify: Rover controller: turns, moves, multiple rovers, then collision checks

Interview question #Shopify Machine coding

Base task. Build a controller for a rover that starts at (0, 0) facing north. It accepts three commands: turn left, turn right, and move forward one step. After every command it reports its position and heading. The requirement was given verbally and was less precise than this.

Follow-up 1. Support several rovers: create, delete and select which rover receives commands.

Follow-up 2 (no AI allowed). A move must fail if another rover occupies the cell directly ahead, which means tracking every rover's position.

Format. A pair-programming screen where an AI coding assistant was allowed for the first parts.

What the interviewer cared about.

  • Shipping a working first version fast. Refactors such as a direction enum or the command pattern were discussed but deliberately postponed.
  • Checking the AI's claims rather than trusting them. The assistant reported 80% test coverage, a real coverage report contradicted it, and more tests brought coverage to 99%.
  • Scoping the AI's context when adding features, and coding the final part unaided.
0 comments

Comments 0

No comments yet. Ask the author something, or add what happened in your own round.