Programming the AI
Posted: Mon Jan 28, 2013 4:24 pm
I think it would be interesting to be able to script the behavior of one single AI opponent.
Define events like OnNewMineDiscovered, OnNewCompanyStarted.
Then you can script what the AI will do, for instance:
Define events like OnNewMineDiscovered, OnNewCompanyStarted.
Then you can script what the AI will do, for instance:
Code: Select all
public class InvestorAI
{
private void OnNewCompanyStarted(Company company)
{
if (this.enoughCash)
{
this.buyShares(company, 100);
}
}
}