Know about other players actions

AI discussion, ideas, and SDK help.
Post Reply
Lux Newbie
Posts: 5
Joined: Sat Feb 23, 2008 6:24 pm

Know about other players actions

Post by Incanus » Sat Feb 23, 2008 6:43 pm

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.

User avatar
Posts: 252
Joined: Wed Jun 01, 2005 4:33 pm

Post by GregM » Sun Feb 24, 2008 9:29 pm

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.

User avatar
Posts: 67
Joined: Wed Jan 23, 2008 9:22 am
Location: Raleigh, NC

Post by varoadstter » Sun Feb 24, 2008 10:15 pm

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.

Post Reply