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