darozak / Advolition

1 stars 0 forks source link

Do not require robots to return myAction. #68

Closed darozak closed 4 months ago

darozak commented 4 months ago

The robots shouldn't need to return myAction. Rather, they just need to update the object that is passed to them from the game engine.

darozak commented 4 months ago

It turns out that the robot can not pass changes to myAction back to the game engine via the run function's argument because in most cases the robot writes over myAction and destroys the link to the game engine object. Therefore, robots must submit their actions via the return functions. However, I did remove myAction from the run function arguments since this is not needed (https://github.com/darozak/Advolition/commit/3d64519ee5452a308598afcfbb64c42bae3ce26f).