Datasets:
File size: 887 Bytes
45f037d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<Interpret> The player is at row 2, column 1, and the goal is at row 4, column 4. There are 8 holes. They are at: row 2, column 4; row 3, column 3; row 4, column 5; row 4, column 7; row 6, column 1; row 6, column 2; row 6, column 4; row 6, column 7. <Action Plan> - Moving Down (D). The player is now at row 3, column 1. This grid is safe. - Moving Down (D). The player is now at row 4, column 1. This grid is safe. - Moving Right (R). The player is now at row 4, column 2. This grid is safe. - Moving Right (R). The player is now at row 4, column 3. This grid is safe. - Moving Right (R). The player is now at row 4, column 4. This grid is the goal, so we stop here. <Verification> 1. Down to row 3, column 1 (safe) 2. Down to row 4, column 1 (safe) 3. Right to row 4, column 2 (safe) 4. Right to row 4, column 3 (safe) 5. Right to row 4, column 4 (goal) <Output> Action plan: D,D,R,R,R |