Create a Python script /home/user/pathfinder.py that reads a grid from a file and finds the shortest path…
Create a Python script /home/user/pathfinder.py that reads a grid from a file and finds the shortest path…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The script accepts exactly one command-line argument: the path to a grid file. - The grid…
The task
**Input contract:** - The script accepts exactly one command-line argument: the path to a grid file. - The grid file format: - First line: two integers `rows cols` (1 ≤ rows, cols ≤ 1000) separated by a single space. - Second line: `start_row start_col` (0-indexed integers). - Third line: `goal_row goal_col`…
Part of ai-and/termgrade-environments.