GameAlgo - YaliToledano/OPP_Maze GitHub Wiki

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.