type Dir =
| North
| West
| South
| East
let takeDirection (act:Act) (dir:Dir) =
match act with
| Straight -> dir
| Left ->
match dir with
| North -> East
| East -> South
| South -> West
| West -> North
| Right ->
match dir with
| North -> West
| West -> South
| South -> East
| East -> North
Usually North points upwards. So, when the Hero is pointing North, turning Left would make it point West. I dont follow why takeDirection implements it the other way. Am I missing something?
-Surya