creating an intelligent agent for
play

Creating an intelligent agent for StarCraft: Brood War University - PowerPoint PPT Presentation

Creating an intelligent agent for StarCraft: Brood War University of Lige Faculty of Applied Sciences 2009 2010 Firas Safadi Master in Computer Science Professional Focus Introduction Computers Why artificial intelligence (AI)? Video


  1. Creating an intelligent agent for StarCraft: Brood War University of Liège Faculty of Applied Sciences 2009 – 2010 Firas Safadi Master in Computer Science Professional Focus

  2. Introduction Computers Why artificial intelligence (AI)? Video games Why real-time strategy (RTS) games?

  3. Chapter I StarCraft: Brood War

  4. History Developed by Blizzard Entertainment, Inc. and released in 1998 Proved successful as it continues to drive popular video game leagues even 10 years after its release, especially in South Korea

  5. Features 3 races (Terran, Zerg and Protoss) different (but balanced!) with unique abilities and characterized by a distinct play style Rich resource mechanics minerals, gas, supplies (reclaimable) Lots of units with many attributes

  6. Interface Resource panel (overlay) [1] Command panel [2] Portrait [3] Unit information [4] Mini-map [5]

  7. Chapter II Agent Design

  8. Strategy Strategic Manager Design Overview Production Combat Orders travel from the strategy Tactical Manager Manager manager down to individual units. They start as abstract orders and are processed by the Work Military intermediate managers, Operational Squads Squads eventually translating into concrete unit commands.

  9. Strategy Strategic Manager Strategy Manager Production Combat • Tactical Simplified game state Manager Manager • Trigger-based decisions Work Military Operational Squads Squads

  10. Strategy Strategic Production Manager Manager Production Combat • Tactical Build order management Manager Manager • Worker assignment Work Military Operational Squads Squads

  11. Strategy Strategic Manager Combat Manager Production Combat • Tactical Combat flags Manager Manager • Military unit assignment • Squad deployment Work Military Operational Squads Squads

  12. Strategy Strategic Manager Military Squads Production Combat • Tactical Target selection Manager Manager • Formation and behavior Work Military Operational Squads Squads

  13. Strategy Strategic Manager Work Squads Production Combat • Tactical Resource gathering Manager Manager • Building construction Work Military Operational Squads Squads

  14. Order Processing Production Order Combat Order Train 8 Attack marines Build barracks Create 2 squads Acquire resources Destroy outpost Gather minerals Kill a patrol unit

  15. Chapter III Implementation

  16. Framework StarCraft is not open source! The Brood War Application Programming Interface (BWAPI) is an open source C++ “hacker” framework and provides hooks to access the game state and issue commands. BWAPI add-ons: BWSAL, BWTA, etc. BWAPI is not perfect!

  17. How does it work? Normal flow Altered flow Draw Agent Draw Take user screen processing screen commands Compute Take agent Compute next frame commands next frame

  18. Chapter IV Results

  19. Game Statistics 120 100 80 60 40 20 0 Units produced Units killed Units lost

  20. Final Words The project was successful! Primary objective met Very useful for the years to come

  21. The End Thanks for listening!

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend