HF RL Explorer

Implement a command-line tool /app/pathfinder.py that computes the shortest path through a grid from a start…

Implement a command-line tool /app/pathfinder.py that computes the shortest path through a grid from a start…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract : The tool reads a JSON grid file whose path is the single CLI argument. The JSON…

The task

**Input contract**: The tool reads a JSON grid file whose path is the single CLI argument. The JSON structure: ```json { "grid": [[0, 5, 0], [1, 0, 0]], "start": [0, 0], "goal": [1, 2], "flags": 0 } ``` - `grid`: 2D array of ints (rows × cols). Non-zero values are traversable cells with that movement cost (>=1). Zero…

Part of ai-and/termgrade-environments.