dgant / purplewave Goto Github PK
View Code? Open in Web Editor NEWStarCraft: Brood War AI in Scala
License: Other
StarCraft: Brood War AI in Scala
License: Other
Hi! I can not build current github version successfully. The version AIIDE 2017 is ok, so I think I followed How to build correctly. There are 14 errors listed as follows.
D:\Work\PurpleWave\src\Information\Economy.scala
Error:(35, 100) type mismatch;
found : ProxyBwapi.UnitInfo.UnitInfo
required: ProxyBwapi.UnitInfo.FriendlyUnitInfo
Error occurred in an application involving default arguments.
private val ourActiveMinersCache = new Cache(() => With.units.countOurs(u => isActivelyMining(u) && u.gatheringMinerals))
Error:(36, 100) type mismatch;
found : ProxyBwapi.UnitInfo.UnitInfo
required: ProxyBwapi.UnitInfo.FriendlyUnitInfo
Error occurred in an application involving default arguments.
private val ourActiveDrillersCache = new Cache(() => With.units.countOurs(u => isActivelyMining(u) && u.gatheringGas))
D:\Work\PurpleWave\src\Information\Intelligenze\Fingerprinting\Generic\AbstractFingerprintQuantityBy.scala
Error:(13, 16) ambiguous reference to overloaded definition,
both method countEnemy in class UnitTracker of type (predicate: ProxyBwapi.UnitInfo.ForeignUnitInfo => Boolean)Int
and method countEnemy in class UnitTracker of type (matcher: Planning.Composition.UnitMatchers.UnitMatcher*)Int
match argument types (ProxyBwapi.UnitInfo.UnitInfo => Boolean) and expected result type Int
With.units.countEnemy(u =>
D:\Work\PurpleWave\src\Micro\Actions\Combat\Tactics\Tickle.scala
Error:(85, 36) ambiguous reference to overloaded definition,
both method countOurs in class UnitTracker of type (predicate: ProxyBwapi.UnitInfo.FriendlyUnitInfo => Boolean)Int
and method countOurs in class UnitTracker of type (matcher: Planning.Composition.UnitMatchers.UnitMatcher*)Int
match argument types (ProxyBwapi.UnitInfo.UnitInfo => Boolean)
val workersHere = With.units.countOurs(u => u.unitClass.isWorker && u.zone == zone)
D:\Work\PurpleWave\src\Micro\Squads\Goals\GoalBasic.scala
Warning:(80, 25) enclosing method offer has result type Unit: return value discarded
if ( ! acceptsHelp) return Iterable.empty
D:\Work\PurpleWave\src\Planning\Composition\UnitCounters\UnitCountExcept.scala
Error:(9, 68) type mismatch;
found : ProxyBwapi.UnitInfo.UnitInfo
required: ProxyBwapi.UnitInfo.FriendlyUnitInfo
val cap = With.units.countOurs(unit => With.recruiter.eligible(unit) && matcher.accept(unit))
D:\Work\PurpleWave\src\Planning\Plans\GamePlans\Zerg\ZvT\TwoHatchMuta.scala
Error:(122, 20) ambiguous reference to overloaded definition,
both method countOurs in class UnitTracker of type (predicate: ProxyBwapi.UnitInfo.FriendlyUnitInfo => Boolean)Int
and method countOurs in class UnitTracker of type (matcher: Planning.Composition.UnitMatchers.UnitMatcher*)Int
match argument types (ProxyBwapi.UnitInfo.UnitInfo => Boolean)
Error occurred in an application involving default arguments.
With.units.countOurs(_.gasLeft > 0)),
D:\Work\PurpleWave\src\Planning\Plans\Macro\Automatic\AddAddons.scala
Error:(11, 16) ambiguous reference to overloaded definition,
both method countOurs in class UnitTracker of type (predicate: ProxyBwapi.UnitInfo.FriendlyUnitInfo => Boolean)Int
and method countOurs in class UnitTracker of type (matcher: Planning.Composition.UnitMatchers.UnitMatcher*)Int
match argument types (ProxyBwapi.UnitInfo.UnitInfo => Boolean) and expected result type Int
With.units.countOurs(b => b.is(unitClass.whatBuilds.1) && b.addon.isEmpty)
D:\Work\PurpleWave\src\Planning\Plans\Macro\Automatic\TrainContinuously.scala
Error:(72, 37) value buildType is not a member of ProxyBwapi.UnitInfo.UnitInfo
|| (unit.is(Zerg.Egg) && unit.buildType == unitClass))
D:\Work\PurpleWave\src\Planning\Plans\Macro\Automatic\TrainDynamic.scala
Error:(72, 37) value buildType is not a member of ProxyBwapi.UnitInfo.UnitInfo
|| (unit.is(Zerg.Egg) && unit.buildType == unitClass))
D:\Work\PurpleWave\src\Planning\Plans\Macro\Protoss\MeldArchons.scala
Error:(21, 36) ambiguous reference to overloaded definition,
both method countOurs in class UnitTracker of type (predicate: ProxyBwapi.UnitInfo.FriendlyUnitInfo => Boolean)Int
and method countOurs in class UnitTracker of type (matcher: Planning.Composition.UnitMatchers.UnitMatcher*)Int
match argument types (ProxyBwapi.UnitInfo.UnitInfo => Boolean)
val templarLow = With.units.countOurs(u => u.is(Protoss.HighTemplar) && u.energy < maxEnergy)
D:\Work\PurpleWave\src\Planning\Plans\Macro\Terran\BuildBunkersAtBases.scala
Error:(42, 40) ambiguous reference to overloaded definition,
both method countOurs in class UnitTracker of type (predicate: ProxyBwapi.UnitInfo.FriendlyUnitInfo => Boolean)Int
and method countOurs in class UnitTracker of type (matcher: Planning.Composition.UnitMatchers.UnitMatcher*)Int
match argument types (ProxyBwapi.UnitInfo.UnitInfo => Boolean)
lazy val towersInZone = With.units.countOurs(u => u.is(Terran.Bunker) && u.zone == zone)
D:\Work\PurpleWave\src\Planning\Plans\Macro\Terran\BuildMissileTurretsAtBases.scala
Error:(34, 36) ambiguous reference to overloaded definition,
both method countOurs in class UnitTracker of type (predicate: ProxyBwapi.UnitInfo.FriendlyUnitInfo => Boolean)Int
and method countOurs in class UnitTracker of type (matcher: Planning.Composition.UnitMatchers.UnitMatcher*)Int
match argument types (ProxyBwapi.UnitInfo.UnitInfo => Boolean)
val turretsInBase = With.units.countOurs(unit => unit.is(Terran.MissileTurret) && unit.zone == zone)
D:\Work\PurpleWave\src\Planning\Plans\Macro\Zerg\BuildZergStaticDefenseAtBases.scala
Error:(44, 40) ambiguous reference to overloaded definition,
both method countOurs in class UnitTracker of type (predicate: ProxyBwapi.UnitInfo.FriendlyUnitInfo => Boolean)Int
and method countOurs in class UnitTracker of type (matcher: Planning.Composition.UnitMatchers.UnitMatcher*)Int
match argument types (ProxyBwapi.UnitInfo.UnitInfo => Boolean)
lazy val towersInZone = With.units.countOurs(unit => Vector(Zerg.CreepColony, towerClass).contains(unit.unitClass) && unit.zone == zone)
D:\Work\PurpleWave\src\Planning\Plans\Predicates\Scenarios\WeAreBeingWorkerRushed.scala
Error:(14, 16) ambiguous reference to overloaded definition,
both method countEnemy in class UnitTracker of type (predicate: ProxyBwapi.UnitInfo.ForeignUnitInfo => Boolean)Int
and method countEnemy in class UnitTracker of type (matcher: Planning.Composition.UnitMatchers.UnitMatcher*)Int
match argument types (ProxyBwapi.UnitInfo.UnitInfo => Boolean)
With.units.countEnemy(unit => unit.unitClass.isWorker && unit.zone.bases.exists(.owner.isUs)) >
Sorry to bother you. I have a problem about PurpleWave.
As the install.md shows, I use BWAPI 4.1.2 and 32-bit java to run PurpleWave AI. PurpleWave.dll, PurpleWave.jar, run_proxy.bat which are downloaded from AIIDE Starcraft AI competition web are included in the bwapi-data\AI document. When I use java to run the PurpleWave.jar and start the Starcraft game, the cmd shows " Game ready!". At the beginning of the game, PurpleWave let all initial probes to attack and will not build new probe. There is no double that PurpleWave lose the game.
This game strategy is very different to the replays of PurpleWave in 2017th Starcraft AI competition. Is there anything I've done wrong here?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.