When a SmartRandomBot has visited all neighbouring positions, it will always chose the last on in sensible_positions, which puts it into a loop easily. I think initially we had some sort of least-recently-visited logic in there. Should we make it smarter or keep this as an educational bug. :)
When a SmartRandomBot has visited all neighbouring positions, it will always chose the last on in
sensible_positions
, which puts it into a loop easily. I think initially we had some sort of least-recently-visited logic in there. Should we make it smarter or keep this as an educational bug. :)https://github.com/ASPP/pelita_template/blob/c600a75b758f3cdc489c68ee3834d1d25d906741/demo03_smartrandom.py#L44-L54