Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    [TestAI] Download and discussion

    AI
    4
    13
    530
    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.
    • A. S.
      A. S. last edited by A. S.

      About

      "TestAI" for TripleA was originally developed during an university course in 2015 (with TripleA version 1.8.0.9).

      The main goal was to implement an AI for the movement of units based on the UCT algorithm. Other phases of the game are implemented too, but mostly for testing the AI in full game scenarios.

      Download

      Contains all required files and a handbook with further explanations.

      TestAI public 20220424.zip

      Development

      If someone is interested in (some parts of) the code, it can be used under the terms of GNU General Public License version 2 or later. I don't have time to maintain the code by myself, but try to answer questions in this forum at least.

      R 1 Reply Last reply Reply Quote 3
      • R
        RogerCooper @A. S. last edited by

        @a-s How did it actually perform?

        A. S. 1 Reply Last reply Reply Quote 1
        • A. S.
          A. S. @RogerCooper last edited by

          @rogercooper said in [TestAI] Download and discussion:

          @a-s How did it actually perform?

          Well, technically, it does, what it should and the defined "goals" can be seen in the movement of units on the map.

          In terms of "playing strength", more goals in class "TestSetAndEvaluateGoals" would be needed, and "TestPurchaseAI", as well as "TestPlaceAI" are not elaborated enough, I think.

          "TestPurchaseAI" and "TestPlaceAI" could be connected to the "goal- approach" too, or replaced with other classes for this phases.

          At the moment, they are only connected by an integer "alignmentOfAI" to the rest of the code, and not really bound to it.

          Overall, I would say, it is a "proof of concept", that the UCT algorithm can be applied to the movement phases in TripleA. Of course, it is possible, that this has be done in other AIs of TripleA already.

          R 1 Reply Last reply Reply Quote 0
          • R
            RogerCooper @A. S. last edited by

            @a-s The other AI's don't use UCT or any similar algorithm. They use heuristics based upon testing various possible moves for net TUV benefits and enemy counterattacks.

            1 Reply Last reply Reply Quote 0
            • C
              cosmo last edited by

              @A-S How does one go about actually running this bot and playing with or against it? I can't seem to figure it out based on the handbook alone.

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

                @cosmo Which handbook are you referring to?

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

                  @lafayette I'm talking about the handbook included in OP's zip file. I can't figure out how to hook these .java files up to either the server or the client. Do you know how I might go about it?

                  LaFayette A. S. 2 Replies Last reply Reply Quote 0
                  • LaFayette
                    LaFayette Admin @cosmo last edited by

                    @cosmo I have never seen that handbook before I don't really know who authored it, or when. It does not seem to go into detail about how to add a test ai.

                    I'm sorry, I can't be of help to you here. There is a lot more background and research that needs to be done.

                    • what is your experience building java applications?
                    • are you able to build the triplea source code?
                    • how old is this source code? When was it last known to be working?
                    • what have you tried so far?
                    • why are you trying to build it?

                    This is just the start to the questions... Perhaps someone else might be able to help.

                    What i can say is there is a service discovery module that looks for classes on the classpath that have a given implementation. It should be mostly a matter of compiling and then adding the classes to the classpath in one manner or another. The AI's are possibly not completely plug-and-play, so you may need to make additional code updates before this AI is actually usable.

                    I do vaguely recall in the 'dev handbook' there being mentions about how to integrate a new AI. That 'handbook' though is a legacy document and YMMV.

                    1 Reply Last reply Reply Quote 0
                    • A. S.
                      A. S. @cosmo last edited by

                      @cosmo said in [TestAI] Download and discussion:

                      @lafayette I'm talking about the handbook included in OP's zip file. I can't figure out how to hook these .java files up to either the server or the client. Do you know how I might go about it?

                      Well, I wrote a short guide for development with Eclipse Juno and TripleA Version 1.8.0.9 back then.

                      If you are interested, I could translate it to English, and add it to the handbook?

                      LaFayette C 2 Replies Last reply Reply Quote 1
                      • LaFayette
                        LaFayette Admin @A. S. last edited by

                        @a-s If the documentation is up to date, it could be useful and very welcome. All documentation belongs in this location: https://github.com/triplea-game/triplea/tree/master/docs, or on README.md files.

                        1 Reply Last reply Reply Quote 0
                        • C
                          cosmo @A. S. last edited by

                          @a-s said in [TestAI] Download and discussion:

                          If you are interested, I could translate it to English, and add it to the handbook?

                          Yes, please! That would be amazing. Could you send me a link to the non-English version in the meantime?

                          A. S. 1 Reply Last reply Reply Quote 0
                          • A. S.
                            A. S. @cosmo last edited by

                            @cosmo said in [TestAI] Download and discussion:

                            @a-s said in [TestAI] Download and discussion:

                            If you are interested, I could translate it to English, and add it to the handbook?

                            Yes, please! That would be amazing. Could you send me a link to the non-English version in the meantime?

                            Added a section "Development" to the handbook, and uploaded the file in the original post anew.

                            C 1 Reply Last reply Reply Quote 0
                            • C
                              cosmo @A. S. last edited by

                              @a-s This is awesome, thank you so much! You're the best.

                              1 Reply Last reply Reply Quote 0
                              • 1 / 1
                              • First post
                                Last post
                              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums