ChatGPT o1-preview was able to generate this game with only ten prompts. Several of the prompts were fairly complex, and it only made one mistake, which it fixed correctly without me having to guide it very much. It generated an efficient breadth-first path finding algorithm, automatically accounted for edge cases in functionality, and produced clean code. It was even able to self-referentially include the prompts I gave it verbatim. Impressive stuff!
https://brianpeiris.github.io/chatgpt-o1-grid-game/
Here's the full chat log: https://chatgpt.com/share/66e390f5-5a04-8009-baab-8bb411b30bb9