Page 1 of 1

Know about other players actions

Posted: Sat Feb 23, 2008 6:43 pm
by Incanus
Hi, im interested in make an inelligent robot who knows about what actions do other players to determine what kind of players are (offensive, deffensive, etc.).

This is called modeling opponent.

I have looked in the javadoc and there isnt any method to allow that. I would like a method in the agent interface like notifyAttack(countryAttacker, countryDefender, deathsAttaker, deathsDefender) or notifyPutSoldiers (country, numberOfSoldiers).

are there something like this and i didnt see??

if the answer is no, i would want that someone implements it (i think i can do easily if i get the lux delux code).

Sorry if i dont explain myself very well, i arent a good english writer.

Posted: Sun Feb 24, 2008 9:29 pm
by GregM
You can use the LuxAgent.message() method to determine when you are attacked. But I don't think it's possible to get notified about an attack that doesn't involve one of your countries.

Posted: Sun Feb 24, 2008 10:15 pm
by varoadstter
There isn't a callback mechanism within the API that works in the way you ask. If you would like something along these lines, you can PM Dustin but my suspicion is that he will not be willing to implement what you have asked for.

Perhaps you should rethink the way you intend to write your bot. I don't think it is possible to discern concretely whether a given move would be considered offensive or defensive. Frankly, every move in the game is an offensive move unless you're just sitting there doing nothing.

If you have more information about how you want to put it together maybe I or someone else who has some understanding of the API could lend a hand figuring out how to use what's already there.