Better chances for AI

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
raspi
Engineer
Engineer
Posts: 1
Joined: 17 Aug 2008 00:24

Better chances for AI

Post by raspi »

Let's se we have AI's
  • Foo $ 100M
    Bar $ 10 M
    Quux $ 1M
    Xyzzy $ 1M
I buy all. Now there's 10% chance that new AI player will have 100 M as initial money and 1% chance that new AI has 110 M as initial money and maybe 0.1% it has all buy-outs combined.

Because now there's problem. If you get to buy one AI, you usually end up buying all. Now the new AI company has to start from scratch. Not good. Bigger initial money and no loans means AI can begin from buying planes = better competition.

In the coding side this would work something like this:
When you buy AI company you add it's value to array. You order it by max to min value. When time comes to add new AI company you run those chances if AI company gets it's initial sum to be bigger.

If it is that 10% chance you take the most biggest value, add it to AI initial money and remove it from the array.

If it is that 1% chance you take two most biggest values, add those to AI initial money and remove those from the array.

If it is that 0.1% chance you sum all values, add those to AI initial money and remove those from the array.

and that array has number of max AI values.
Mchl
Director
Director
Posts: 611
Joined: 05 Jan 2007 15:50
Location: Poland
Contact:

Re: Better chances for AI

Post by Mchl »

AI can begin with planes with usual money. In fact the best user created AIs in NoAI branch are those that use planes.
Trust me. When NoAI gets into trunk, there'll be no more need to handicap AIs.
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 14 guests