TripleA Logo TripleA Forum
    • TripleA Website
    • Recent
    • Popular
    • Register
    • Login

    Improved Pro AI, please give it a try and post feedback

    Scheduled Pinned Locked Moved AI
    59 Posts 10 Posters 265 Views 9 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.
    • VictoryFirstV
      VictoryFirst
      last edited by VictoryFirst

      AI lost Classic.tsvg

      Played a game of Classic against the new AI. I was the Axis and the AI played the Allies. It didn't really put up a fight. It kept building bombers and tanks as the British. They eventually had 5 tanks in London for no good reason. The Western Allies invaded Africa early which is good, but they didn't start landing in Europe. It kept massing its fleet for a large invasion but that invasion never came because I defended the coastline properly. In this game, it is key to reinforce Russia as much as possible and the AI didn't do that. It just kept bombing me and let me kill Russia. Honestly I was not impressed by the Allied play, they were making strange and passive moves that made an Axis win inevitable.

      The game was won at the end of round 7 because of an Axis economic victory.

      image.jpeg
      image.jpeg

      RogerCooperR 1 Reply Last reply
      Reply Quote 2
      • RogerCooperR
        RogerCooper @VictoryFirst
        last edited by

        @VictoryFirst I tried the Hard Beta with the Axis against the Hard with the Allies using Oztea 41, a fairly balanced scenario using the Global Map (and no annoying politics rules).

        On turn 9, Berlin fell to a can opener attack where the Americans took Denmark and the British took a barely defended Berlin. Another problem was the Japanese overbuilding air and not having enough ground forces to defeat China.

        These were issues the Hard AI also had.

        2026-11-2-41-Oztea.tsvg

        1 Reply Last reply
        Reply Quote 2
        • LaFayetteL
          LaFayette Admin
          last edited by LaFayette

          Working through all of the latest. I presume everyone is playing against the "Hard(Beta) AI". Please prefer Hard(Beta) AI.

          FYI, reminder: Bug fixes, like patches to know about rules, are always updated in both "Hard AI" and "Hard(Beta) AI" both. The "beta" AI uses additional considerations & mechanics and is enabled or disabled with the "beta features" engine setting.


          @schulz a patch to make the ProAI (Hard AI)aware of amphibious scramble should be live now.

          @rogercooper can-opener happened because (LLM wrote):"The traces found the cause of the Berlin loss, and it is exactly Roger's "can opener": the AI treats the Danish Straits as closed to the British, so it sees no sea-landing threat on Berlin." That can be patched!

          Issues found

          • It's looking like the excessive bombers is the ProAI deciding to spend excess income on air.
          • ProAI is not considering a canal based can opener. It sees a canal as closed, and treats it that way until next round. The ProAI then unstacks because it only see a few units that can attack, so G becomes too lightly defended.

          Additional Approach for improvements

          I'm realizing a number of issues is the ProAi not being aware of some rules. I'm working to compare a full set of rules with what ProAI knows about to give clues to which rules it should implement. Rockets, paratroopers look to be big ones for that gap.

          Hoping to have a number more patches/fixes landed tomorrow night and the day after.

          SchulzS RogerCooperR 2 Replies Last reply
          Reply Quote 2
          • O
            Ondis Lobby Moderators
            last edited by

            Havent tried it will check it out later on middle earth.

            To note one thing the Hard Ai has a problem with dealing is capital bait&recapture. It doesnt seem to understand that it must defend the capital when it recaptures lest the opponent take it over again and steal all PUs, could be worth scripting for those outliers.

            1 Reply Last reply
            Reply Quote 1
            • SchulzS
              Schulz @LaFayette
              last edited by Schulz

              @lafayette This version doesn't handle the ship's remaining movement in the non-combat phase properly if the ship partially moved during the combat phase.

              I have encountered several naval bugs in v15870 while playing Hard(Beta) AI.

              Ships normally move at 3 in this game. I had loaded the Italian transport with 2 units and moved 1 sea zone during the combat phase.

              1_bug.png

              However, when the non-combat phase started, it showed that the transport still had 3 movement remaining, and the troops did not follow the transport either.

              2_bug.png

              When I opened a new game, it did not allow me to do it again, but the remaining 2 movement of the transport was gone as well.

              bug_3.png

              1 Reply Last reply
              Reply Quote 1
              • RogerCooperR
                RogerCooper @LaFayette
                last edited by

                @rogercooper can-opener happened because (LLM wrote):"The traces found the cause of the Berlin loss, and it is exactly Roger's "can opener": the AI treats the Danish Straits as closed to the British, so it sees no sea-landing threat on Berlin." That can be patched!

                Issues found

                • It's looking like the excessive bombers is the ProAI deciding to spend excess income on air.

                Note that the excessive purchase of air power is a long-standing problem of the Hard AI. It can happen because it has too much money or because the opposition is too far. This is sometimes compounded by the failure to use aircraft aggressively.

                A rule of thumb like no more than 50% of the value of the purchase and/or the total force should be air could be used. If the opposition is across an ocean, naval units should be built. If you have a lot of aircraft, the "cost" of aircraft should be reduced for the purpose of assessing the profitability of attack.

                1 Reply Last reply
                Reply Quote 1
                • ubernautU
                  ubernaut Moderators Lobby Moderators @LaFayette
                  last edited by

                  @LaFayette didnt have much time to dig much yet but i did notice it does some funny stuff with naval forces also doesn’t seem to understand the need to land planes on airfields

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

                  LaFayetteL 1 Reply Last reply
                  Reply Quote 0
                  • LaFayetteL
                    LaFayette Admin
                    last edited by

                    Everything reported up until my last comment might have some improvements in place now (this comment: https://forums.triplea-game.org/post/81117). About 25 fixes landed between then and now.

                    I'm now working on the feedback since then. Kindly include save games - those can be automatically used for creating mini-scenarios where patches are tested to ensure the AI actually makes different choices.

                    With that mentioned - great feedback, ty, keep it coming!

                    C 1 Reply Last reply
                    Reply Quote 2
                    • LaFayetteL
                      LaFayette Admin @ubernaut
                      last edited by

                      @ubernaut Claude wants:

                      Ask ubernaut for: a save from just before the bad turn, the map, the build number, whether it was Hard or Hard(Beta), and what looked wrong.

                      ubernautU 1 Reply Last reply
                      Reply Quote 1
                      • ubernautU
                        ubernaut Moderators Lobby Moderators @LaFayette
                        last edited by

                        @LaFayette i didn't save anything was just playing around will dig a bit when i have more time 🙂

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

                        1 Reply Last reply
                        Reply Quote 0
                        • SchulzS
                          Schulz
                          last edited by

                          Unfortunately, v15892 doesn't recognize the remaining movement points of the ships in the non-combat phase either.

                          1 Reply Last reply
                          Reply Quote 1
                          • C
                            cwolf359 @LaFayette
                            last edited by

                            @LaFayette - this is very cool and I have just synced up a fork of tripleA where I have my bots bolting on a REST API onto it and and a stateless endpoint for a web version of tripleA focused on Global and Anniversary setups. As part of my testing I am simulating AI vs AI to improve behavior - what is the preferred way to provide feedback on the core Beta AI? I have a set of Claude bots and Grok Build bots working on filling gaps as they run tests.

                            1 Reply Last reply
                            Reply Quote 1
                            • SchulzS
                              Schulz
                              last edited by

                              I would like to continue testing the AI, but the ship bug is preventing me.

                              What is the latest version that doesn't have this bug?

                              1 Reply Last reply
                              Reply Quote 1
                              • LaFayetteL
                                LaFayette Admin
                                last edited by

                                I've created a new pinned forum post for new write ups: https://forums.triplea-game.org/topic/4468/vs-ai-game-write-ups

                                I'm happy keeping this forum post to discuss AI updates/progress for fixes. I'd like the #4468 post to be pretty pure, just a series of game writes up. Please add them! Even if I don't respond. My dream is to check in next week and have 20 write ups posted and ready for analysis.

                                I'll emphasize, the TripleA AI, and any AI on TripleA - DOES NOT LEARN WELL PLAYING ITSELF!! It gets small refinements, but this is different from Go or Chess where AI can learn. TripleA is far more complex then either of those two games, to the extent where AI vs AI is good for validating a specific change leads to stronger play, but for learning "what would be stronger play", it's almost impossible. This is why the human vs AI games with write up is so valuable. We're telling the game directly what it should do instead rather than trying to find that out 'the hard way' (for which TripleA does not do that well, too many possible moves).

                                The way the AI is benchmarked and trained is even different from Chess/Go. I've been building a set of tactical scenarios, small ones, where teh AI can play against itself to validate if it improved on just that scenario, before it even goes to playing full games.

                                I mostly wanted to emphasize:

                                • Write ups are extremely valuable
                                • Please post them, even if I'm not responding, even if a backlog forms -> I will still be able to go through them and they'll be valuable.

                                Already the AI is short of human feedback. I already have scraped the entire forum for every complaint ever posted about the AI and it's already fixed a good chunk of those. We really need humans to comment on where the AI could be stronger.

                                TheDogT 1 Reply Last reply
                                Reply Quote 4
                                • TheDogT
                                  TheDog @LaFayette
                                  last edited by

                                  @LaFayette

                                  Suggestion for Beta AI. AFAIK enemy support values are NOT taken into account for purchasing. eg in 1941GCD AT guns cause suppression to enemy Armor. Currently only positive numbers are valued for purchases, not negative ones.

                                  <!-- Anti-Tank Suppress ENEMY Armor -->
                                  <attachment name="supportAttachment_Anti-Tank_sup_Armor" attachTo="Anti-Tank" javaClass="UnitSupportAttachment" type="unitType">
                                  <option name="faction" value="enemy"/>
                                  <option name="unitType" value="$All-Armor$:Inf-Motorized"/>
                                  <option name="side" value="defence"/> <!-- defence is correct, reduces enemy Armor strength Atk -->
                                  <option name="dice" value="strength"/>
                                  <option name="bonus" value="-1"/>
                                  <option name="number" value="1"/>
                                  <option name="bonusType" value="Anti-Tank"/>
                                  <option name="players" value="$All-Players$"/>
                                  </attachment>

                                  AFAIK The above is not valued for purchasing

                                  On its own this might be such a big change to purchasing, it might need a property true so that map makers can turn it on and old maps play as before?

                                  https://forums.triplea-game.org/tags/thedog
                                  https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                                  1 Reply Last reply
                                  Reply Quote 1
                                  • LaFayetteL
                                    LaFayette Admin
                                    last edited by

                                    A new set of AI updates landed just now, OP is updated.

                                    @thedog / @schulz I'll look into both issues.

                                    Let's continue with this thread being a "meta" thread for discussing the AI and the new thread I linked a bit earlier for the write-ups.

                                    1 Reply Last reply
                                    Reply Quote 1
                                    • LaFayetteL
                                      LaFayette Admin
                                      last edited by

                                      @schulz I really could use a save game for the ship bug.

                                      TheDogT SchulzS 2 Replies Last reply
                                      Reply Quote 2
                                      • TheDogT
                                        TheDog @LaFayette
                                        last edited by TheDog

                                        @LaFayette

                                        The current AI fails to reuse its Transports, especially in Global maps, this is inefficient and maps with stacking clogs up the Sea Zone

                                        In most A&A maps a Transport 0-0-2 with 7 Transport Capacity is a Shucking/Taxi unit.
                                        A player reuses these to go and get more units usually from USA.

                                        But not every unit with a Transport Capacity is a Shucking unit, they need splitting out by function, as below.

                                        In 1941GCD it has 3 Transport Capacity units with transportCapacity
                                        Battleship 3 TC, transport Inf-Trained, xml has isCombatTransport
                                        Cruiser 2 TC, transport Inf-Elite, xml has isCombatTransport
                                        Convoy 14TC, a mix of units, this is a Shucking unit (not isCombatTransport)

                                        https://forums.triplea-game.org/tags/thedog
                                        https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                                        TheDogT 1 Reply Last reply
                                        Reply Quote 0
                                        • TheDogT
                                          TheDog @TheDog
                                          last edited by

                                          @lafayette
                                          The current Fast-AI is very weak in attacking using a amphibious assault.

                                          Its style is usually to just win and then suffers a counter attack that wipes it out. Note this is the Fast-AI, maybe Hard-AI does it better.

                                          Any AI should over commit its forces, so that any counter attacks have little to no chance of success.

                                          https://forums.triplea-game.org/tags/thedog
                                          https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                                          1 Reply Last reply
                                          Reply Quote 0
                                          • SchulzS
                                            Schulz @LaFayette
                                            last edited by

                                            @LaFayette bw_v3.tsvg

                                            The German sub can't move back to SZ 6 in the non-combat phase, even though it has 1 point of movement remaining.

                                            RogerCooperR 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
                                            • 3
                                            • 3 / 3
                                            • First post
                                              Last post
                                            Powered by NodeBB Forums