Coder Social home page Coder Social logo

magbot's Introduction

MagBot

A Protoss bot (AI) for the game Starcraft:Broodwar.

Dependencies

  • master
    • BWAPI 4.1.2
    • BWTA 2.2

Build

This application runs on Visual Studio 2013

Mineral Gathering Optimization

ScreenShot

ScreenShot

Acknowledgement

@inproceedings{uriarte16b,
  author    = {Uriarte, Alberto and Onta\~{n}\'{o}n, Santiago},
  title     = {Improving Terrain Analysis and Applications to RTS Game AI},
  booktitle = {AIIDE},
  year      = {2016}
}

magbot's People

Contributors

jeanpierrethach avatar

Stargazers

 avatar Dan Gant avatar

Watchers

James Cloos avatar  avatar

Forkers

sophie-williams

magbot's Issues

[WorkerManager] Building location

Context: problem occurred in Benzene 1.1 top right base location.

  • Multiple gateways is built when the build order queue only states one.

Function involved: getBuilder from WorkerManager

When the bot has enough minerals, the closest mining worker is set to builder and wants to build, but a second worker set to mine also wants to build it.
May be related to the fact that when getBuilder gets called, the closest mining worker is set to Builder
then if the test location isn't valid (in fog of war or outside the map), it will try to find another valid location while the next closest mining worker is doing the same task.

Reproduction: Load Benzene 1.1 map. Set localFrameSpeed to 0 with /speed 0 command.

Possible solution : add reserved tiles or add getValidBuildingLocation() function when doing test_location in BuildingManager

List of tasks

BuildingData

  • Add information for the position/desiredposition (require testing)

BuildingManager

  • If a worker dies and was assigned to build

BuildOrder

  • Implement method add that allows creation of units at a supply specified
  • If we don't have the prerequisite for a building in the queue, add all of them
  • Manage metatype which doesn't have prerequiste
  • Research tech
  • Upgrade tech

BuildOrderQueue

  • Implement method hasItemInQueue

Config

  • Namespace for config file, strategy, micro, macro, tools

DefenceManager

  • WIP

GameCommander

  • Search through WorkerManagement instance

InformationManager

  • WIP

MineralNode

  • WIP

ProductionManager

  • Implement method for goals of unit construction
  • moveWorker method for create(...) depending on distance, time to travel, gathering rate

PylonData

  • WIP

ScoutManager

  • WIP

SquadData

  • Add overall stats of the squad (health, power, etc..)
  • Find nearest squad method

SquadManager

  • WIP
  • RebalanceSquads()

StrategyManager

  • Worker count vs build order
  • RebuildWorkers()

Worker

  • WIP
  • Add worker stats
  • Add auto defence implementation
  • Rebalance workers method

WorkerManager

  • WIP
  • Reimplement mining assignment since default from game engine isn't optimized
  • Relook at Build(position, unittype)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.