HF RL Explorer

Create a command-line tool /root/pathfinder.py that finds the shortest path through a weighted grid from a…

Create a command-line tool /root/pathfinder.py that finds the shortest path through a weighted grid from a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format : The script reads a JSON file from a path given as the first argument. The JSON has this…

The task

**Input format**: The script reads a JSON file from a path given as the first argument. The JSON has this structure: ```json { "grid": [[1, 2, 3], [4, 5, 6], [7, 8, 9]], "start": [0, 0], "goal": [2, 2], "blocked": [[1, 1]], "wrap": false, "max_cost": null } ``` - `grid` is a 2D rectangular array of positive integers…

Part of ai-and/termgrade-environments.