TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    AI Development Discussion and Feedback

    Scheduled Pinned Locked Moved AI
    316 Posts 32 Posters 430.9k Views 30 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RogerCooperR Offline
      RogerCooper @Black_Elk
      last edited by

      @black_elk From a computational point of view, Axis & Allies is much more complicated than Go or Chess. There was an attempt to use a neural net to play Risk a few years ago, and it played poorly.

      The Fast AI is actually better in some situations than the Hard AI. It is more aggressive than the Hard AI sometimes.

      Black_ElkB 1 Reply Last reply Reply Quote 1
      • Black_ElkB Offline
        Black_Elk @RogerCooper
        last edited by Black_Elk

        Some requests for the AI

        Naval blockers: On land the AI will use infantry to block attack lanes or make enemy can openers less likely, but on the water this is much less common. I think an improvement might be something like AI tries fanning out it's destroyers as pickets. Basically try to leave a hitpoint in sz tiles or create a hostile sea zone between it's own fleets and the opponents when possible. Something similar for subs might also make sense for things like blockades, where AI tries to position subs near the coasts/coastal production if no enemy DDs are in range.

        Air-transports: The AI does pretty well using ground transports and naval transports, but in the air transport feature still doesn't seem to work. I was wondering if maybe the loading confirmation was throwing it off? Anyhow, not a unit type that gets used much in the world war II games, but would be cool for maps that use them.

        Capitals and VCs: Some way for the AI to go all-in for the win, or to prioritize that over preserving/destroying TUV when Victory is on the line. Basically where taking/holding a capital or achieving/preventing the TKO by VCs, would override other considerations when the AI is in that position.

        ubernautU 1 Reply Last reply Reply Quote 4
        • ubernautU Offline
          ubernaut Moderators @Black_Elk
          last edited by

          @black_elk banger ideas love them 🙂

          "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

          1 Reply Last reply Reply Quote 1
          • C Offline
            Cernel Moderators
            last edited by

            Hey, I just played a game against Hard(AI) in 2.5 and the AI failed spectacularly leaving Japanese a 99% on Russia (Moscow) on round 6!

            Assuming the AI didn't just give up seeing that I would have achieved Economic Victory anyway, there must be a major logic fail in multi-powers defence of capitals. Assuming that @redrum is done with TripleA, maybe @myrd can take a look at this?

            @cernel said in Axis Strategy Advice- Hard AI WWII Classic 3rd Edition Version 2.5.22294?:

            @sculpt I played as Axis with the options you listed and everything else as given (and without taking advantage of any illegal moves which the program allows, like naval-stalling or loading two infantries and offloading only one of them into combat on the same turn) and won (by Economic Victory +10) on round 6 (on the first try).

            2023-9-2-World-War-II-Classic-3rd-Edition(6Win).tsvg

            (You need to assign Russians to yourself before starting the saved game or else Russians will play even though the game is over.)

            Be warned that much of what I did would not work against a good (human) player (especially having British not placing any ships for the entire game).

            Beside this, the major AI fail throughout the game is that I was easily able to cause British never to place any ships (by death-zoning with Germans air units), and they even stacked useless land units in the United Kingdom! A decent player would have saved income until having enough for safe naval building and would have helped itself with the staple of placing British carriers and landing Americans fighters on them before the Germans turn. At the very least, they should have kept building bombers to destroy my PUs (as in Classic bombing is unlimited until the target is down to 0 PUs). Of course, also Japanese breaking through the Panama canal and conquering Brazil and Cuba safely is stupid (and that would have worked even better if I didn't limit myself not doing the illegal move of loading two infantries and offloading only one of them into combat on the same turn).

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              Myrd @Cernel
              last edited by

              @cernel

              It would be interesting to test the same on 2.6. It should be possible to load a 2.5 save on 2.6 and see what the AI does. If you don't have a save from a past turn, I think there's also an option to create one from history that you can use (though it's an experimental option and may not work 100% reliably).

              Some things have been improved with AI in 2.6, for example there's logic to save up for a fleet now.

              Otherwise, I personally don't have specific plans to work on making AI smarter in the immediate future. So you'd need to find someone else to contribute or persuade @redrum to come back to it.

              C 3 Replies Last reply Reply Quote 0
              • C Offline
                Cernel Moderators @Myrd
                last edited by

                @myrd I've just taken this history save:

                2023-9-2-World-War-II-Classic-3rd-Edition(History6British).tsvg

                Loading it in 2.6.14479 (try it yourself if thou wilt), the AI still decides to have British fully vacating Russia (Moscow), letting Japan have a 99% on it. Thus, it seems that at least this issue has remained the same.

                This is a really bad major AI fail: the turn of Japanese is even immediately after that of British!

                1 Reply Last reply Reply Quote 0
                • C Offline
                  Cernel Moderators @Myrd
                  last edited by

                  @myrd said in AI Development Discussion and Feedback:

                  Some things have been improved with AI in 2.6, for example there's logic to save up for a fleet now.

                  Good to know, but the AI actually could have secured the sea zone already with no need of saving income. Still referring to the same saved game linked at the post which you have replied to, I've examined in details what the AI failed to do (if @redrum or any developer wants to look into making the AI able to play decently in this instance).

                  @cernel said in Axis Strategy Advice- Hard AI WWII Classic 3rd Edition Version 2.5.22294?:

                  Starting from the state of the game in the saved game at the start of the first British turn (that is immediately after I made the Germans turn), what a (human or better AI) player could have done during that turn and the subsequent turns of Americans and Russians is killing the German submarine with air units only (very high chance), moving a British transport to North Sea Zone from East Canada Sea Zone, placing a new British Carrier and a new British transport into North Sea Zone, redeploying two British fighters on the new carrier (which is possible with your rules choice, otherwise two Americans fighters can land on it on the same round), move 1 Americans transport to North Sea Zone and move 1 Russians submarine to West Spain Sea zone. This would have given an Allied fleet of 5 transports, 1 carrier, 1 battleship and 2 fighters which could have been attacked only by the Germans air for a measly 19% chance to destroy the fleet. Alternatively and preferably, the Russians submarine could have been kept in the zone and British could have sent (as the AI actually did in the game) 1 battleship, 1 submarine and 1 bomber to 100% (approximated to 1% ) kill the 1 transport and the 1 (already damaged) battleship in West Mediterranean Sea Zone while still having a very high chance to kill the Germans submarine (attacking it with up to 2 British fighters, 1 Americans bomber and 2 Russians fighters). This would have given an Allied fleet of 5 transports, 1 submarine, 1 carrier and 2 fighters which could have been attacked only by the Germans air for a not good 54% chance to destroy the fleet. I said not good because on average the result of this battle would be all Allied units in the sea zone and all Germans air being lost, and that would be certainly not a good outcome for Germans. However, the AI did neither of these things likely due to some logic failing or missing to see and correctly evaluate such possibilities.

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    Cernel Moderators @Myrd
                    last edited by Cernel

                    @myrd said in AI Development Discussion and Feedback:

                    Some things have been improved with AI in 2.6, for example there's logic to save up for a fleet now.

                    An other good reason for hopefully not waiting some more years to release 2.6.:crossed_fingers:

                    Yes, although I won by round 5 this time (thanks to some luck and the fact that I assume the AI does not see the Economic Victory at all), it does seem that 2.6 plays significantly better than 2.5 in this game overall.

                    Saved game, played with 2.6.14492:
                    2023-9-5-World-War-II-Classic-3rd-Edition(5Win).tsvg

                    There has not been a need actually to save income for future shipbuilding.

                    By the start of the second Germans turn (Germans having 3 bombers and 4 fighters), the AI had in North Sea Zone a quantity of units which put the Germans at 84% win and +16 TUV swing. This actually means that I would have averagely lost the 4 fighters and saved only the 3 bombers if I would have got the 84% win (and of course had a 16% chance of disaster). That was just enough to convince me not to attack the sea zone. I don't know if the AI actually didn't fail while failing or actually and quite correctly decided that even those bad odds were actually good enough (because in the specific case the Germans TUV is just worth so much more than the Allied one). Since the air was very much needed for the land, I didn't even attack the lonely battleship in West Mediterranean Sea Zone, but that is mostly me being very cautious. However, the AI could have assured better odds while still killing all my Germans ships (the way I described previously), so maybe someone can look into it if there is something to improve or the AI actually (correctly) reasoned that an 84% for the enemy was actually good enough in the particular situation (I doubt it).

                    By the start of the third Germans turn (Germans having 4 bombers and 5 fighters), the AI had in North Sea Zone a quantity of units which put the Germans at 53% win and +19 TUV swing. Again, I didn't attack.

                    Overall, winning as Axis by round 5 in Classic with no bid is certainly not a good result for the Allies, but I actually think that the AI played maybe decently this time. A bit of this outcome is actually to be credited to luck: on round 5 the Russians attacked East Europe with a 92% and +7 TUV swing which actually ended in retreat and a -18 for them. If that battle had some close to average result, I would most likely not have won so early.


                    However, regarding the previous game, I do believe the very bad fail of leaving Russia (Moscow) at 99% Win for Japanese is a serious issue also in 2.6 as I tested the save and went the same way (as I said). I definitely believe something must be working wrongly there if a developer can check that: you can load the previous save (not the one at this post) and see that British just moves the air units away letting Japanese have Russia (Moscow).

                    1 Reply Last reply Reply Quote 0
                    • bluelionmanB Offline
                      bluelionman
                      last edited by

                      I have been having an epic battle with the AI on Fast in BW1942v3 and have encountered an issue. The AI should of beat me and has 100's of units but keeps leaving East Germany - it's capital empty. 3 times now I have taken 100 PU's off it with Britain using a paratrooper as when empty the AA gun does not fire. For me the AI does not seem to understand the importance of a capital and it's loss resulting in losing all it's PU's (money).

                      a7334637-4ae4-4c3c-ac80-8726d425d2c6-image.png

                      Where would you rather be than right here, right now!

                      B RogerCooperR 2 Replies Last reply Reply Quote 0
                      • B Offline
                        beelee @bluelionman
                        last edited by

                        @bluelionman

                        hmm I thought that was one thing the AI did understand. It might be more map specific than AI specific. There has been some xml improvements that specifically target the AI since this map came out.

                        @RogerCooper may have experience with the AI on this map

                        1 Reply Last reply Reply Quote 0
                        • RogerCooperR Offline
                          RogerCooper @bluelionman
                          last edited by

                          @bluelionman said in AI Development Discussion and Feedback:

                          I have been having an epic battle with the AI on Fast in BW1942v3 and have encountered an issue. The AI should of beat me and has 100's of units but keeps leaving East Germany - it's capital empty. 3 times now I have taken 100 PU's off it with Britain using a paratrooper as when empty the AA gun does not fire. For me the AI does not seem to understand the importance of a capital and it's loss resulting in losing all it's PU's (money).

                          a7334637-4ae4-4c3c-ac80-8726d425d2c6-image.png

                          The AI does not understand paratroopers, so it does not defend against them. Human players should not use them against the an AI.

                          Why do you, as a human have more than 100 british ships? You should be landing every turn in Europe, while the Americans push west form the Pacific.

                          Another way of winning would be to land in Scandinavia reinforcing by sea to the front of your line each turn.

                          1 Reply Last reply Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • 1
                          • 2
                          • 6
                          • 7
                          • 8
                          • 9
                          • 10
                          • 15
                          • 16
                          • 8 / 16
                          • First post
                            Last post
                          Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums