• TripleA '12

    Thank you, Veqryn. No, I’m not a developer by any means and I’m happy with the AI as it is. I merely wish to possibly get involved with the look/feel/easthetics/functionality side of it. I’m good with art and graphics, is all. I love to work on maps/interfaces and stuff. I will check out the developer forums.

    Also, as an aside to that: when I reload a saved game, the program resets all the powers to Human control by default. Is this right? The game I saved last night had the Axis powers as Human-controlled and the Allied powers as the ‘Moore N. Able’ AI, but when I reloaded the game today it had reset everything to Human. Surely this is not right? Or am I missing something?

    Thankies!  :-)

  • '12

    Hey Veqryn.  Have you thought of perhaps getting a university involved an having a grad student do a thesis or as some sort of project?

    I’ve been doing software development for quite some time and am currently taking a 4th year university course in machine learning to complete a 4 year degree I started in the early 90s.  I was also nearly killed by a drunk driver 18 months ago so this is way beyond the effort I am able to give to it.  I would be happy to act as a free consultant for such a project.  If the rule enforcement libraries in existence could be easily accessed it would make the job of AI creation much easier.  Genetic learning would be a way to attack generic problems that multiple games under tripleA represent, would make a really cool project and my professor specializes in this.

  • Customizer

    a while back (during the time when 1.2.5.4 triplea was out), a grad student made an Alpha-Beta trimming AI that could simulate many turns ahead, as a project for his school.
    The problem was though that because it was a theoretical work, he made it to only work with the “minimap” and not with any ‘real’ maps.
    And in addition to this, the AI looking 3 turns ahead caused the turns to take over 10 minutes, on minimap.
    By turns I mean player-turns.  So minimap is a 2 player game, so this meant red turn - blue turn - red turn.
    In order to be good at a map, he projected it would need to look 2 full rounds ahead.  Which would mean on a map with 6 players, it would need to look 12 turns ahead.  This would probably need a supercomputer to run.
    He did give me the code though…

    Actually coding the AI is much easier than you think it is.  Much much easier.  (its just time consuming)
    In fact, I fixed most of the bugs in the “Moore AI” before I even learned Java (I have some background in ‘Basic’ so I know things like variables, if-else, while loops, etc., and that was all i needed to be able to read the code).

    Basically, all AIs extend the “AbstractAI”, and they just have to have certain methods that will get called by the abstractAI as each phase or question comes up. 
    No need to learn about any of the validation, etc.

  • TripleA '12

    Hey, one thing I’ve found recently is that sometimes my air units are showing as not having enough range to reach a target when I know for a fact that they clearly do. I’m getting the little red ‘x’ over the target territory. I’m not sure if the AI is picking the shortest route to the target? The way I’ve found to get around this is to click on each game space individually until my air unit reaches the target territory, and then it works fine. Now, why would this be? Is it a bug? Thank you.

  • Customizer

    first, which version of triplea are you using?
    second, under what circumstances does it happen?  ie: does it only happen at sea when there are carriers involved in the movement, etc?
    maybe giving me a savegame of it happening would help me fix the problem…. please email me the savegame or post it here

    (nothing to do with the AI btw, as you are a human player)

  • TripleA '12

    I am using 1.3.2.2.

    It happened on a combat move phase where I was trying to bomb an enemy ic. I knew my bomber had enough movement to hit the ic and then fly back to a friendly territory since the start of the turn, but no matter how I tried the system (not the AI) wouldn’t let me do it in one click. I had to literally click each space in turn until i reached the target ic. I will try and get you an example and hopefully a screenshot.

    I love Triple A and will do anything to help make it better! Also, it’s happened a couple of times where the enemy AI has attacked my submarine with air units and he did not bring a destroyer. The system asks me if I want to submerge and I say yes. But surely aircraft can’t hit an enemy sub without a destroyer! What would happen if I clicked ‘no’…? I will investigate.

    Thank you

  • Customizer

    The AIs were built back when Revised was the main game, so they assume that fighters can hit submarines.

    A screenshot will not help much, but if you can get me a savegame, that would be perfect.  With the savegame, I can load it up while in debug mode and see where in the code it is stopping you.

    Also, in the future, you can use the CTRL key to map out the path you want to take.  Just CTRL-click on each territory on the path.

    thx,
    veqryn

  • '12

    Veqryn.  By validation, I mean being able to generate a legal game state from an existing game state.  In some respects, AI is simple.  From an existing game state, generate all legal game states and evaluate which ones are good and go from there (repeat recursively to the ply depth your processing ability supports).  But the game-state evaluation function is the key (and where the work lies).  Sure you have more pieces, but I have you in check mate in 1 move with half your pieces.  Like I said, I’m not the guy to do the heavy lifting, I just want to make it easy for the person/party going to do this.  Whatever can be re-used to make this easier is going to make this a more desirable project.

    I can see this as being an interesting application for genetic learning especially since existing game play histories can be used as a ‘case’ example for a branch of genetic learning called ‘case injection’.  Moreover, being able to ‘Play’ against humans would be extremely attractive in a research project on machine learning.

    Now as for super-computer power requirements, yeah maybe.  I’ve used genetic learning algorithms and yeah, maybe it does require lots of power.  In theory, a genetic algorithms could play any of the versions of games on tripleA, the variations require abstraction and that in itself is a draw in academia.  The processing power could be outsourced to the ‘cloud’ or the university hosting the master thesis to work on this rather than just running on the user’s computer, or even a SETI like project.  Genetic algorithms are well suited to distributed computing.

  • Customizer

    well…. as an open source project, anyone is free and able to look at and modify the source code

    in addition to that, I’m willing to give dev access to anyone who wants to seriously work on either the map maker or any of the AIs

    but beyond fixing the occasional null pointer error, I am really not going to be touching the AIs
    I already spent about 3 months improving the Moore N. Able AI, and I’m satisfied that it can play most of the maps decently well enough.
    (I also just created 4 different methods that let the AI cheat, which you can enable before the game starts if you want to.  This is for TripleA 1.5 and later versions.)

    so, if you or anyone else wants to pick up the code, feel free to start:
    http://sourceforge.net/projects/triplea/files/
    SVN: http://sourceforge.net/scm/?type=svn&group_id=44492

  • '12

    Great.  I’ll pass along the concept and related links to the head of machine learning the the university where I am taking the course and see if it generates any interest.  It would make an interesting project, might be worth putting it ‘out there’ to the academic community at large.

  • Liaison TripleA '11 '10

    Axis and Allies was meant to be played by MEN, not MACHINES!

    An AI intelligent enough, could become Artificial.  I mean, if it knows when to rock out a good gamble, that could be dangerous! :P

    For the record, I don’t “look” ahead in most of my games, other than for the obvious - “Oh they are going to take a shot at the capital” kind of stuff.  If the AI just did what it had to do to get it’s NO’s, and focus on the economics, it would be deadly enough.

Suggested Topics

  • 5
  • 1
  • 7
  • 7
  • 3
  • 1
  • 1
  • 4
Axis & Allies Boardgaming Custom Painted Miniatures

57

Online

17.0k

Users

39.3k

Topics

1.7m

Posts