Germanunkol / trAInsported

Löve2D Game
http://germanunkol.de/trainsported/
Other
163 stars 40 forks source link

AI - variants / personalities #66

Open hajo4 opened 10 years ago

hajo4 commented 10 years ago

For "compete", it would be nice to be able to run several copies of the same AI, with different settings, e.g. for pathfinding or passenger-evaluation. (To avoid making a lot of copies with minor changes, which is hard to track)

This could be done with an extra parameter "variant-number" provided by ai.init(), e.g. like ai.mapEvent(aiID, ... ), so the AI could choose one of its built-in settings.

For AIs used for wargames, this is commonly used to give the same AI more than one "personality", e.g. with peaceful or aggressive settings.

To see who runs with what settings, it would be nice if the AI could then append some string to its name.

hajo4 commented 10 years ago

The same idea "param to select a variant" could be applied to map-making programs, i.e. same map but different placing of passengers.