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

    Join the TripleA TEAM!

    Scheduled Pinned Locked Moved News
    85 Posts 20 Posters 53.5k Views 19 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.
    • LaFayetteL Offline
      LaFayette Admin
      last edited by

      @Schulz the level of customization needed is going to be prevent an drop-in-replacements. The best examples is the existing code and learning what/where you'll need to modify.

      Being able to write code is just one skill, other skills important to development are:

      • being able to understand existing code
      • being able to map a codebase, being able to find and roughly understand where certain things are, what happens where
      • being able to map a feature and what needs to change
      • being able to incrementally build that feature and break up the work into increments rather than releasing all changes, all at once in a big bang
      • being able to write tests for code that you create
      1 Reply Last reply Reply Quote 2
      • SchulzS Offline
        Schulz
        last edited by

        I would like to learn more about AI development and I have so many questions.

        1. To what extend can casual players contribute AI development?

        2. Will the AI always be designed and developed to be suited to only A&A rules?

        3. How could AI be developed for maps that uses different rules than A&A rules to some extend?

        4. Can AI be technically as good as humans or even better?

        5. Could AlphaZero be helpful if all territories were represented with squares in a rectangle map?

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

          To what extend can casual players contribute AI development?
          

          Pro-AI is not trivial and does not have any tests written for it. So it can be quite daunting to approach and one would have to be really careful about what you change. The biggest contribution from casual players is probably clearly coming up with scenarios where the AI makes a mistake, concisely explaining it and posting a save game where the mistake is made.

          In terms of coding, the engine is supposed to have a pretty well defined set of interfaces for plugging in an AI, though it's not a small lift at all and requires some programming skill.

          Will the AI always be designed and developed to be suited to only A&A rules?
          

          Probably

          How could AI be developed for maps that uses different rules than A&A rules to some extend?
          

          First we would need to add back more than just A&A style rules, then one could build AIs for it. Building a generic AI that can solve any game is the stuff of doctoral dissertations. There is no plan to expand the A&A style rules beyond being able to support 'conquest' (Risk (TM)) rules.

          Can AI be technically as good as humans or even better?
          

          In theory better, certainly.

          Could AlphaZero be helpful if all territories were represented with squares in a rectangle map?
          

          Machine learning requires a lot of data, you'd need the AI to play against itself to create a training data set. If you're asking whether we could just plug in AlphaZero, no, we couldn't unfortunately : )

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

            To what extend can casual players contribute AI development?

            To expound, if you are inclined to work on the code, then not only would a person come up with a concise scenario for improvement, but they would then work on the code fix too.

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

              If casual players want to contribute improvement of AI should they only come with save games that uses fully A&A rules without any exception? But also A&A rules are different in each versions but most popular-casual maps are based on strickly v3 rules.

              For example I've tested AI in Aggression 1941 despite slighly different rules than v3 rule-set, AI mostly makes the same mistakes and even have problem to understand v3 rules.

              10rounds.tsvg

              Germany

              • Does not use starting submarines.
              • Too obsesive to overdefending capitals and resulted very weak push in the Eastern Front and remaining armies always switch around Germany-W.Ukraine and Hungary.
              • No interest to defend France.
              • Never buys naval units despite cheaper costs.
              • Doesn't know how do naval blockades and intercept work.

              Russia

              • Prefers stacking Moscow-Bereznik instead of Ryazan without any benefit
              • Overdefeding Sinkiang and W.India despite zero Japanese threat.

              Japan

              • Sending transports undefended
              • Does not attack China.
              • Doesn't use the navy effectively in anywhere.
              • Buys too much fighter without effectively using, can't even sacrifice losing a few fighters for better trades.
              • Still thinks its main purpose is fighting with Russia.
              • Doesn't buy any naval units.
              • Doesn't know how do naval blockades and and intercept work.

              England

              • Overdefending India, Africa and Sinkiang.
              • Almost no commitment in Europe.
              • Sending transports undefended.
              • Does not buy naval units.
              • Doesn't know how do naval blockades and intercept work.

              Italy

              • Sending transports undefended.
              • Not thinking about protecting German transports.
              • Sending armies to Hungary and Yugoslavia without a reason
              • Overdefending Germany despite zero Allies threat.
              • Does not buy naval units.
              • Doesn't know how do naval blockades and intercept work.

              America

              • Sending transports undefended.
              • Overcommitment to Africa.
              • No intention of invading Europe or bombing.
              • Not using navy effectively.
              • Does not buy naval units.
              • Buys too much transports.
              • Doesn't know how do naval blockades and intercept work.

              China

              • Not caring much outside of Sinkiang.
              1 Reply Last reply Reply Quote 2
              • LaFayetteL Offline
                LaFayette Admin
                last edited by

                @Schulz this conversation highlights that we need to define the names and meanings of the different rule-sets. I took A&A rules to mean all of its variants (v1-v5+). Yes, AI is intended to play well on all rule variations. There are some scenarios that are complex and not thoroughly implemented, but that is not to say it can't be improved.

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

                  I've tried to prevent AI overdefending Germany-N.Italy-Sinkiang by removing their capital status but still resulted with massive stacks around them.

                  I have some though that might be reasons of AI behaviors.

                  German AI Thinks

                  • Submarines should not be used to attack since they are more expensive than air units, better to preserve them and attacking allied ships with air units only(ignoring AA handicap for air units).

                  • Germany is increadibly valuable territory, its better to keep all armies around it considering Russia is a lot weaker, even a token force might be enough to defeat Russia.

                  • Naval units are expensive and useless (ignoring their better defense/movement advantages/blockades)

                  Japanese AI thinks

                  • Avoid attacking China because thinks its a bad trade considering Chinese units are cheaper. (ignoring China's low production and low base production)

                  • Probably tries to make deadzoning in Pacific against the US since mass fighters perform better than mass destroyers at attacking.

                  • Thinks it is A&A style game which Japan should always attack Russia.

                  English AI thinks

                  • Germany is too strong, better to fight in other areas.

                  American AI thinks

                  • Constantly switching all units from one ocean to another is a good idea.

                  • The only AI that buys transports.


                  The Allies really scare Kwantung Army.

                  manh.png

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

                    @Schulz , let's keep this thread on-topic : )

                    I've created category in forums "AI" to hold all conversations related to AI, would you mind migrating your questions there and we can continue the conversation in that thread?

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

                      Sure, I'm just relocating all of these questions to "AI topic" with additions.

                      1 Reply Last reply Reply Quote 2
                      • Jack SarlesJ Offline
                        Jack Sarles
                        last edited by

                        Hi , my name is Jack Sarles and I'm a junior in a computer science program that is looking to help out the dev team here for TripleA. I have some basic java experience and have played probably at least 500 hours of Triple A in the past two years or so. I'm excited about the possibility of fixing bugs and whatever else needs fixing as well as a dream goal of working to improve the Artifical Intelligence because as a long time player of the game I definitely feel I've outgrown even the hard AI by a good margin. Anyways, I'm excited to help anyway I can!

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

                          Good to hear @Jack-Sarles

                          This page has a lot of documentation on getting started: https://github.com/triplea-game/triplea/blob/master/docs/development/README.md

                          Feel free to open an issue to talk through any challenges or help finding something to work on https://github.com/triplea-game/triplea/issues/new/choose

                          There are plenty of error reports currently to pick from: https://github.com/triplea-game/triplea/issues?q=is%3Aissue+is%3Aopen+label%3A"Error+Report", if you can pick one & reproduce it, you'll be half way there on your first fix, we'd be happy to talk through more details.

                          First steps though are to get started with compiling and running the code.

                          Jack SarlesJ 1 Reply Last reply Reply Quote 0
                          • Jack SarlesJ Offline
                            Jack Sarles @LaFayette
                            last edited by

                            @LaFayette ok sounds good, I happen to be using the Intellij IDE from brainlabs already for school, is that what the rest of you use? Thanks. I'll read through these links!!

                            LaFayetteL 1 Reply Last reply Reply Quote 2
                            • LaFayetteL Offline
                              LaFayette Admin @Jack Sarles
                              last edited by

                              @Jack-Sarles For the most part, yes

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

                                I would like to help updating bots if there is a need. Thanks.

                                1 Reply Last reply Reply Quote 4
                                • RommelsAsparagusR Offline
                                  RommelsAsparagus Lobby Moderators
                                  last edited by

                                  SilverBullet indicated he mentioned me (RommelsAsparagus on TripleA) for looking into a Mod role - which I am confirming my interest in here 🙂

                                  Mike

                                  1 Reply Last reply Reply Quote 2
                                  • Jack SarlesJ Offline
                                    Jack Sarles @prastle
                                    last edited by

                                    @prastle New Dev Document is located here https://github.com/triplea-game/triplea/blob/master/docs/development/README.md

                                    1 Reply Last reply Reply Quote 1
                                    • Jack SarlesJ Offline
                                      Jack Sarles @Schulz
                                      last edited by

                                      @schulz I am really interested in working on AI development as well. I am still getting my machine setup to code, have you completed this yet?

                                      SchulzS TheDogT 2 Replies Last reply Reply Quote 0
                                      • SchulzS Offline
                                        Schulz @Jack Sarles
                                        last edited by

                                        @jack-sarles I don't work on AI development.

                                        Jack SarlesJ 1 Reply Last reply Reply Quote 0
                                        • Jack SarlesJ Offline
                                          Jack Sarles @Schulz
                                          last edited by

                                          @schulz oh ok

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

                                            @jack-sarles said in Join the TripleA TEAM!:

                                            I am really interested in working on AI development as well. I am still getting my machine setup to code, have you completed this yet?

                                            @jack-sarles
                                            @LaFayette is your man to give the heads up to.

                                            Jack I will help do your AI testing.

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

                                            Jack SarlesJ 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
                                            • 4
                                            • 5
                                            • 4 / 5
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums