← Questions

Replace a text game's heuristic logic with LLM calls

0
CohereCodingLast asked Sep 2026

A coding interview question asked in Cohere's coding round, last asked Sep 2026. It tests llm, agents and refactoring.

You are given a text game that runs in the terminal. Its Python code, a few hundred lines, makes the game's decisions with hand-written rules.

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

  • Cohere · Coding · Last asked Sep 202660 min · Live coding · Reported as generally allowed; you are graded on the work, not on how you use AI

What it tests

llm · agents · refactoring

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