You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that good start for this could be refactoring of Arena.
I would like to see add_object method instead of add_robot, add_bullet and whatever else will come later. Then we can use just update_objects instead of update_bullets, update_robots...
The only issue which I do not know solve yet, is how to implement robots and bullets method. I can search all objects for objects with class Robot, but then I introduce coupling and add new knowledge to Arena class (it needs to know class of robots, bullets...).
Unfortunately I do not have any experiences if this is good solution or not. So if anyone can advice me then it would be really great! Thanks.
Maybe I am just over thinking this, but well... I want to have beautiful and good designed code ;)
Low priority, but nice to have for future.
The text was updated successfully, but these errors were encountered: