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
RoiPeleg edited this page Jan 19, 2020
·
1 revision
GameAlgo
stores the algorithms of all automatic purposes.
basicG - used in when you chose automatic in the GUI greedy algorithm that sends each robot to the fruit closest to it, and if two robots tries to go to the same one it sends the second to a random one.
placeRobots - gets number of robots to place , returns a list of nodes id to place them on.
each id in the list represents a source node of the edge a fruit is placed on. if there are more robots than fruits it chooses randomly.
has a random walk implementation as a naive approach.