|
<Interpret> |
|
The player is at row 3, column 3, and the goal is at row 6, column 6. |
|
There are 4 holes. They are at: row 1, column 1; row 1, column 3; row 2, column 1; row 6, column 3. |
|
<Action Plan> |
|
- Moving Right (R). The player is now at row 3, column 4. This grid is safe. |
|
- Moving Right (R). The player is now at row 3, column 5. This grid is safe. |
|
- Moving Right (R). The player is now at row 3, column 6. This grid is safe. |
|
- Moving Down (D). The player is now at row 4, column 6. This grid is safe. |
|
- Moving Down (D). The player is now at row 5, column 6. This grid is safe. |
|
- Moving Down (D). The player is now at row 6, column 6. This grid is the goal, so we stop here. |
|
<Verification> |
|
1. Right to row 3, column 4 (safe) |
|
2. Right to row 3, column 5 (safe) |
|
3. Right to row 3, column 6 (safe) |
|
4. Down to row 4, column 6 (safe) |
|
5. Down to row 5, column 6 (safe) |
|
6. Down to row 6, column 6 (goal) |
|
<Output> |
|
Action plan: R,R,R,D,D,D |