Now max action selection for predator, however, once it gets into a location with max = wait, it never moves again. OTOH, it seems to work otherwise, though why would wait ever have a probability of 1? Probably if you're in the location next to the prey, because V for prey_location = 0 and V for next to prey_location is 10. How to fix this? Structure wise it works, but as expected you get into an infinite loop now.
Almost
Merge branch 'master' of https://github.com/sagieske/AA1
Now max action selection for predator, however, once it gets into a location with max = wait, it never moves again. OTOH, it seems to work otherwise, though why would wait ever have a probability of 1? Probably if you're in the location next to the prey, because V for prey_location = 0 and V for next to prey_location is 10. How to fix this? Structure wise it works, but as expected you get into an infinite loop now.