• Register

The near future: Trains are no longer controlled by humans. Instead, artificial intelligence is used to handle traffic. Program the best AI, beat challenges on various maps and watch it fight other AIs in live, online matches!

Forum Thread
  Posts  
effect of calculating time? (Games : TrAInsported : Forum : General AI questions : effect of calculating time?) Locked
Thread Options
Apr 24 2013 Anchor

Hi,

do trains wait while the ai-functions wait for return?

or in other words
does it result in any disadvantages to always use the total numbers of lines per function?

thanks in advance

Apr 28 2013 Anchor

Hi, good question!
The whole game is paused while you're calculating. That's the reason why you may only use a set amount of lines...

So, no, there's no disadvantage when you use the lines up.

Apr 30 2013 Anchor

i got another question:

how are conflicting AIs processed.

to be more specifically:

how do you process (or how is it intended) buyTrain-calls in ai.newPassenger to the same position and direction?

thanks again in advance

Apr 30 2013 Anchor

At random.
One AI's ai.init is run before the other's, so the one being called first gets lucky...

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.