There is a grid of size WIDTH * HEIGHT.X fruits are randomly distributed on the grid.Each player is randomly placed on the grid.The game runs for X / 2 turns.Each turn, a player can move left, up, right, down or not move at all. At the end of each turn, the fruits on each player's square are added to their score, removed from the square and randomly re-spawned somewhere else.What can I do to maximise the number of fruits collected?
Collecting the most Fruit on a Grid
algorithms;randomized algorithms