Divide the angle into 15 degrees, naming from 0 to 23. (East is 0, North is 6, West is 12, South is 18)
Turn left : present direction + 1 mod 24
Turn right : present direction -1, if newdirec == -1, newdirect = 23.
New Problem is, How to implement this in grid World?
Divide the angle into 15 degrees, naming from 0 to 23. (East is 0, North is 6, West is 12, South is 18) Turn left : present direction + 1 mod 24 Turn right : present direction -1, if newdirec == -1, newdirect = 23.
New Problem is, How to implement this in grid World?