HF RL Explorer

Write a CLI tool at /root/pathfind (Python script) that loads a grid from a JSON file, runs A to find the…

Write a CLI tool at /root/pathfind (Python script) that loads a grid from a JSON file, runs A to find the…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Grid specification The JSON file contains: json { "grid": 0,1,0,... , ... , "start": row, col , "goal": row…

The task

**Grid specification** The JSON file contains: ```json { "grid": [[0,1,0,...], ...], "start": [row, col], "goal": [row, col] } ``` - `grid` is a 2D rectangular array of integers (0=traversable, 1=blocked). - `start` and `goal` are `[row, col]` with 0-based indexing. - The grid can be empty (0x0), or have 0 rows, or 0…

Part of ai-and/termgrade-environments.