247 points · by arnsholt · 10y ago · 133 comments
In Go, anyone can place a stone as well as anyone else, it's deciding where to place a stone that's the game. In Starcraft, not everyone can control the interface to the game equally well. Playing Starcraft without using the same interface as humans is like playing baseball with something other than a baseball bat.
Also, I think it's unfortunate that they're choosing Starcraft 1: Brood War (presumably because of API reasons) instead of Starcraft 2, since there are many more top-level players playing sc2 right now to give it a run for its money, with an evolving meta that could more likely adapt and challenge the AI after it wins some matches. SC2 is where the tournaments and money is right now (compared to BW), hence the best players devoting the most time.
> ""Why not StarCraft 2?"
> This is the question we always get asked when we tell people we are doing a BroodWar AI competition. This competition relies completely on BWAPI as a programming interface to BroodWar. BWAPI was created by reverse engineering BroodWar and relies on reading and writing to the program memory space of BroodWar in order to read data and issue commands to the game. Since any program that does this can essentially be seen as a map hack or cheat engine, Blizzard has told us that they don't want us to do anything similar for StarCraft 2. In fact, most of the StarCraft 2 EULA specifically deals with not modifying the program in any way. We are happy that Blizzard have allowed us to continue holding tournaments using BWAPI, and they have also helped out by providing prizes to the AIIDE tournament, however until their policy changes we will not be able to do the same for StarCraft 2."
[0] http://webdocs.cs.ualberta.ca/~cdavid/starcraftaicomp/report...
That said, it would be cool to see SC2 for this, and maybe we'll see it eventually. But I think Blizzard would have to allow it in the end, considering they've been in direct contact with them about this.
Looks really great. I hope they look into this.
In that way there would be no need of any privileged API... and it would be more natural (i.e. interacting with the real way, instead of its abstracted version).
I think there's no need to make it use a keyboard/mouse, you should just add in some human like constraints that are assumed in the game (some limit on APM, some delay between moving the screen and being able to take an action/observe the state).
The interesting part would be whether they can build an AI, not a robot. It's unfortunate that both games are pretty figured out at this point though, it'd be interesting to see if an AI could be made that could react to a big metagame change like http://wiki.teamliquid.net/starcraft/Bisu_Build
Still, if there's no api then there's no point complaining.
Yeah, I've followed Starcraft AI automation for a while. The people programming these AI systems have basically been creating individual unit AIs with a tiny bit of latency.
It's cool to watch but absolutely does not advance the game theory of Starcraft. If you actually had to ration moves, they would have to come up with quite interesting systems. I'd be fine with something borderline impossible like 500 APM - as fast as you can physically click buttons with 10 fingers. Not 2000 APM.
"The system only gets raw pixels as input."
The results were pretty great, so it would be fascinating to see this work with Matt's version of SC2 as mentioned elsewhere in this thread: https://news.ycombinator.com/item?id=11326119
"The emulator’s internal state is not observed by the agent; instead it observes an image xt ∈ Rd from the emulator, which is a vector of raw pixel values representing the current screen. In addition it receives a reward rt representing the change in game score."
The paper: http://arxiv.org/abs/1312.5602
That's the easy part, though. If you can make a SC AI play well against a human you can certainly send mouse events into a window. It really doesn't show anything.
See for example Sikuli, which you can use for automated testing.
Further limiting the apm would be no different than limiting the AI itself. It wouldn't be any different than limiting the cpu/memory usage imo.
[1]: https://www.youtube.com/watch?v=DXUOWXidcY0 [2]: https://www.youtube.com/watch?v=IKVFZ28ybQs
They better keep fog of war on too.
APM is a huge indicator of Starcraft "skill". Its not the only thing of course, but winning "micro-battles" greatly changes the game.
I don't care how good Michael Jordan is. He'll never "win" a game of basketball vs a standard professional by shouting commands to an average joe.
Similarly, no average joe will be able to perform a muta-harass while retaining full-speed, taking only a single missile from a Turret. That sort of "micro-skill" takes practice and dexterity.
DeepMind's system is all about finding patterns. It might do better on those aspects. It could even be trained to recognize some aspects of enemy intent, how the battles are going, etc. Thing is, there's lots of potentials for curveballs in Starcraft compared to Go or Atari games. Human pro's curveball on demand. Should be interesting to see what it can do.
also the APM is not unlimited, it is only very high.
I think this really demonstrates why putting in APM limits is super important, and as brought out elsewhere also making the computer input via mouse/keyboard and get data from the screen (maybe just a filter to ease up on the CV bits?). A lot of the fun in watching a StarCraft map is seeing how the big picture is balanced against the details, and where a person's limited congnition flows from one focus to another. Limited knowledge and scope of sight play a huge part in the skill.
But mostly I'm just ranting because dodging the splash damage feels unfair; goes against everything I stand for. Next we'll start seeing 5 Skill Rays bulldoze the map! (I'm going to be looking into this a lot more after work - it seems like a super cool project!)
I mean, what would an AI come up with given just mass zerglings vs mass zerglings. Would love to see the strategies possible with near unlimited attention and APM.
For example, while banelings, are considered hard-counter to marines, stimpacked marines are still faster than even speed-banelings not on creep and just a little bit slower on creep. Pros use splitting to minimize damage, but here, as you can see, it can be just ultimate showdown.
Another example would be high templars vs ghosts. It is fairly difficult for Terran player to target high templars, but just two EMP shots basically puts templars out of combat, and miss of those shots renders ghosts mostly useless.
So, any area-of-effect attacks would be mostly useless due to infinite APM. That means minus colossi, tanks, banelings, thors and many other units. Probably that means that some race will be somewhat (or, maybe, insanely) overpowered (my bet is on Terran due to possibility of multiple drops, which themselves could be useless, though (because AI can't "miss" a drop), and stim-marine micro). So, the game will require massive rebalancing.
Or maybe it is because opponent is also AI and automaton simply knows which target it will auto pick.
For their atari work, deepmind was using raw pixel data from the screen. You could do something similar for starcraft. I suspect the actual machine learning question is 'given a sequence of n frames of the game, where should i click next? repeat.'
A training set might look something like video of a game with a text file recording X,Y positions for every click and a timestamp that can be synced to the video. They need lots and lots of those.
From there things get drastically more complicated. To go from very unstructured data like that and form higher level representations that can be used for long term planning and strategy... That would be quite a feat.
But man, if Battle.Net did save all of them, there'd likely be hundreds of thousands, if not millions, available. That'd be pretty spectacular as a training set!
But they don't; even moderately competitive players can beat the best bots.
That's because the programmers are bad at AI for that kind of game. It just means human beings don't understand how to make a good AI for a game like starcraft. AKA the human being being the idiot that doesn't understand how to make one.
This isn't true, in general a bigger army will beat a smaller army every time.
After you can make equal size armies, the next problem is army positioning and when to take engagements.
Finally, after you can do all that, then you can get an extra bonus to your power by microing really well. But not every micro is about speed - most of the time it's about knowing what to do.
And even at the most extreme, it's less about clicking quickly and more about clicking precisely.
Yes, anything where the interface to the game becomes critical is difficult to fairly compare with humans. Board games can use a human as an actuator, micro-heavy games hopefully won't for a long time...
Didn't they just try to sell that department?
If you want "fairness" you can limit the instructions to what keyboard and mouse can actually interpret as in the limited latency between instruction that both the game, the OS, and the hardware can support.
https://en.m.wikipedia.org/wiki/Fitts%27s_law
It may also be interesting to model the state of the keyboard hand. Instead of allowing the computer to access keyboard shortcuts directly it could be forced to operate a virtual hand that is in turn operating a virtual keyboard. Constraints could be added to the speed of various finger movements. This provides balance but also captures authentic strategic tradeoffs. Like the resting position of the hand. I imagine if you had a nice visualization it could even reveal subtle optimizations that were practical for humans.
The AIs unit control speed may have to be limited to get interesting results where it has to use strategy.
In chess, go, and even simple atari games, you have a clear way of reading the current state of the game in which the next move will be based on. In SC, this state space includes the predictions of your opponent. What will your opponent build next? What will they try to do with their army? There's an element of theory of mind here, where opponents try to project themselves and preempt each other's moves.
For an AI to truly play and win against a SC pro, using only human level interfaces, it would need to learn how human minds will be playing the game. Otherwise, I think we can expect a strong AI with unconventional tactics that SC pros will be able to fool with tricks and take advantage of because the AI lacks a meta-game capability. A more "general intelligence" would be needed to play at this level, not just a learning algorithm that learns from the pixels on the screen.
Or am I missing something?
e: ref--http://ai.cs.unibas.ch/_files/teaching/fs15/ki/material/ki02...
This could be a dangerous idea. http://lesswrong.com/lw/x4/nonperson_predicates/
Personally, I think (all else being equal) Dota might be an easier starting point than League because of its focus on item abilities, rather than champion abilities. Anybody can use a BKB in Dota, but in League you have Fiora W, Morg E, and a bunch of other things. You have a smaller set of abilities/effects to worry about.
The dodge/aim AI can be situationally good (Cass bots) but still, the best players do win against scripters. Scripters rarely make it into the elite echelons of the ladder; there's a situation right now with a former pro Korean player who started scripting but couldn't make it back into Master tier. You'd expect a former pro with very in-depth game understanding to play at the very tip top level with some 'aim assist' but it doesn't appear to be the case!
Your example of script-users not attaining high ranking in online play for league of legends is also misguided. Because the action space in league is so much smaller than in starcraft, it is much easier to develop an AI with game strategy competency for league. Combine that AI with perfect mechanics, and human players should be falling very readily.
Micro and unit control is where the AI has the advantage.
Even if some AI does defeat Flash in 2017, would they have defeated Flash in 2010?
The mechanical skill required for this game means you simply can't come back to the game after a year and resume where you left off. Knowledge and understanding aren't enough, your fingers must be lightning.
For micro, there are scripts: https://news.ycombinator.com/item?id=11325855
So, while it may be not easy to conquer humans, I don't see why it is out of our current reach.
- Controlling individual units: scouting, resource gathering, micro-management while attacking/retreating, ...
- Resource management and planning: knowing when and where to expand, save resources for certain points in the tech tree, e.g. so you can immediately build a bunch of units once a crucial research or building is complete, ...
- Figuring out what the opponent is building and what he could be doing: where is he and what race, what tech buildings are there, when does he start to harvest gas, key tech buildings may be hidden in other places of the map, essentially even not being attacked with certain units at a certain time may be a clue to some strategy
- Reading and using the terrain properly: High ground has an advantage, Terran can wall off certain entrances with a depot and a barracks, where would be good places for drops (and with what units), figuring out where the enemy could come from and which places to defend – all those vary by map quite a bit
- Finding a good strategy to counter what the opponent is doing: This ties into a few of the things above, because first it must be known what the enemy is doing. Keeping the strategy flexible enough to counter the enemy's counters, etc.
Some of those are necessary to solve in real-time (unit movement), some of those can be run in background and don't need to be frame-exact (strategy, etc.), which helps a bit. But there are still quite a few parts to playing the game, all of which are interconnected and require information from other parts. Many successful bots currently are rush bots, which exploit that most bots are weak in the beginning and are easy to create. Others rely on a number of fixed strategies and build orders that are chosen based on what the enemy is observed to do.
I might argue that the AI vs AI challenge in Starcraft is deeper and more difficult to master. But for AI vs Player the Starcraft AI has an enormous mechanical advantage. Being able to harass mineral lines in four different places is a big deal. Being able to perfectly micro multiple lines of attack/defense is a big deal. It's very unfair and very much in the AI's favor.
Chess < Go < Starcraft < League of Legends
In my moderately educated opinion.
Control them, sure-kiting 100 units at a time would be a breeze-but using them together in a coherent way is drastically more difficult.