Posted by Jay on November 27, 2001 at 10:04:43:
In Reply to: Re: Calls! posted by John on November 27, 2001 at 00:12:50:
Sorry for the lame question...i don't know why i asked that.
: What do you mean is it a bad idea? The spec tells you to use a FIFO queue. As for your logic, the spec makes it pretty clear what happens on a tick.
: : I'm having problems figuring out the calls...see if this makes sense..
: : Calls are not assigned to a truck until a tick performed so i assume we have to store them somehow. So is it a bad idea to store the calls on a queue? then you just dequeue them one at a time and try to find a truck to perform it..and if they are all busy wait until one is available?
Post a Followup