Skip to content

Commit

Permalink
Make reset button working in test AI mode
Browse files Browse the repository at this point in the history
  • Loading branch information
delasy committed Oct 19, 2024
1 parent 51d74fb commit 773ef0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/play/[level]/test-mode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function TestMode({ level, map }: TestModeProps) {
{aiError && <div className="text-red-500 mt-4">{aiError}</div>}
{gameResult && (
<div className="mt-4 flex flex-col items-center gap-8 max-w-4xl mx-auto">
<Visualizer map={playerMap} autoStart={true} />
<Visualizer map={playerMap} autoStart={true} onReset={handleReset} />
<div className="flex flex-col gap-4 flex-1">
<div
className={`text-2xl font-bold ${
Expand Down

0 comments on commit 773ef0f

Please sign in to comment.