Navigation

    TripleA Logo

    TripleA Forum

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

    AI simulate multiple rounds

    AI
    3
    4
    1169
    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.
    • T
      Trevan last edited by

      As part of my new AI, I want to be able to simulate multiple rounds of play. This way, the AI can randomly select player options, diplomacy, etc and then it can play with those selections and see how beneficial they are.

      Because of triggers and such, I think I'll need to actually run the game somehow. I've been going through the code to see how possible it is but I'm wondering if this has been done before? Is there some example that I can follow to accomplish this?

      In addition, because of the randomness of dice and the fact that it will cause the search tree to be really huge, I want to insert my own battle phase that performs battles in a deterministic manner. Has that been done before?

      F 1 Reply Last reply Reply Quote 2
      • F
        ff03k64 @Trevan last edited by

        @Trevan Some AI turns already take a couple of minutes. This would only make that worse wouldn't it?

        T 1 Reply Last reply Reply Quote 0
        • T
          Trevan @ff03k64 last edited by

          @ff03k64 I'm talking about my new AI. Hopefully, it'll run fast enough so that multiple turns can be tested. Also, hopefully it will be good enough to actually play against 🙂

          redrum 1 Reply Last reply Reply Quote 2
          • redrum
            redrum Admin @Trevan last edited by

            @Trevan Currently, the AI simulates the current turn to the end to determine what it should purchase based on estimated moves/battles. It doesn't simulate future turns due to how quickly the search tree explodes and how long it takes to run. You would need an incredible amount of optimization and fairly accurate prediction of moves/battles to slim the search tree to achieve that.

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