Search Unity

Question RTS agent

Discussion in 'ML-Agents' started by Deathtreak, Feb 23, 2023.

  1. Deathtreak

    Deathtreak

    Joined:
    Nov 19, 2017
    Posts:
    17
    Hi,

    I'm wondering if it's possible with the ML-Agents package to create an agent capable to play an RTS , or more likely a small city simulation game?

    My idea is to create a small game and let an Agent play it and develop its civilization to achieve given objectives and improve itself each run.

    If it's possible, do some of you have any posts / threads / video or other resources recommandations for me ?
    Thanks in advance ! :D
     
  2. hughperkins

    hughperkins

    Joined:
    Dec 3, 2022
    Posts:
    191
    Possible? => Yes. OpenAI used RL to learn Starcraft.
    Easy? => No. OpenAI spend $850k on training it.

    If you keep the game *simple* it should be possible. But you probably want to make the game *really* simple. Like, map 1: agent wins if it moves to ore. Map 2: agent wins if it moves to ore and digs. Nice and easy to start off with.
     
  3. hughperkins

    hughperkins

    Joined:
    Dec 3, 2022
    Posts:
    191
    I suppose I answerd the question "Can RL learn an RTS?" Rather than "Can mlagents learn an RTS?".

    mlagents should be able to learn an RTS too. If it was me, I'd probably want lower level access, but I could be biased. If you want lower level access, there's the LLAPI, or you can try my PeacefulPie project