Quote:
That's actually kind of intersting. Having a game/trouney where only AI players are playing in order to test whos AI is better
I am actually irking to implement that for a long time
Here is what the AI scripting template would look like:
Code:
public void createActions(Game game, Player player,
Recorder recorder) {
// analyze the game and record
// actions to perform
ProvinceList provinces = game.getProvinces();
...
// Example: how to recruit 2000 military
// on a province (index 21)
RecruitAction recruitAction = new RecruitAction();
recruitAction.setProvince(province.get(21))
recruitAction.setMilitary(2000)
record.record(recruitAction);
}
Basically all you have to do is to fill in the function listed above! I think that's about as straightforward as it gets?
I am shooting for it for AOC3. The AI will no more be a separate entity, but will appear as a
user in the game! The AI will have its own profile, rating, etc. like human players. Depending on game type, you will now compete for rating points against AI players not only humans.
As far as accounts go. Obviously AI accounts, won't be able to login. Rather, an AI account is assigned to a human account where it can be managed from. A human user can own zero or more AI account.
For example:
system - Strategist 1
- Strategist 2
- ...
noblemaster - Stratego1
- AgainstTravisII
- DoesNOTMoveAi
Basically, there will be a couple AIs which belong to the system account, which will be used every time a game does not have enough human players. Then, you see a user "noblemaster" which has several AI accounts created which he can use for games as he sees fit. Instead of playing under "noblemaster", I would let my Strategy1 AI account play...
I hope I am making sense?