Bot - VadimKachevski/OOP_Ex3 GitHub Wiki
This class implements the robotInterface interface and does not have any addition functions to this interface. A Bot is represented by these elements:
int id – represents the ID for a Bot
node_data currNode- represents the Node that the Bot is on
int money- represents the amount of fruits this Bot has consumed.
Point3D pos- represents the position of this Bpt.
double speed – represents the speed of the Bot.
graph gg – represents the graph which the Bot is part of.
List<node_data> path – represents the path of the Bot.
notes
- In both modes, we've located the Bots near the edges which have the highest value of fruit or fruits. for example if there's two fruits with the value of 3 each on the edge between Node number 3 and Node number 4 and there's a single fruit with the value of 5 between node 6 and node 7 then we place the Bot near the two fruits as their edge's value is higher.