ASPP / pelita_template

Default template to get started with the Pelita game.
3 stars 25 forks source link

SmartRandomBots are not that smart after all #55

Open Debilski opened 3 years ago

Debilski commented 3 years ago

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