Now I want the player to be able to set a production goal, that is a desired number of items he wants produced of a give type.
The task is now for the computer to find the most efficient way of fulfilling the goal. There can be a number of material items already in store, and there can be a cost in time and energy for the processes. The cost in time and energy should be minimized.
Which search algorithm should I use? Neither A* nor BFS seem appropriate...
Edited by comfy chair, 29 October 2012 - 05:44 PM.