• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 23:35
CET 05:35
KST 13:35
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
TL.net Map Contest #21: Winners9Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
StarCraft, SC2, HotS, WC3, Returning to Blizzcon!33$5,000+ WardiTV 2025 Championship6[BSL21] RO32 Group Stage4Weekly Cups (Oct 26-Nov 2): Liquid, Clem, Solar win; LAN in Philly2Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win10
StarCraft 2
General
Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win TL.net Map Contest #21: Winners RotterdaM "Serral is the GOAT, and it's not close" 5.0.15 Patch Balance Hotfix (2025-10-8) StarCraft, SC2, HotS, WC3, Returning to Blizzcon!
Tourneys
Constellation Cup - Main Event - Stellar Fest $5,000+ WardiTV 2025 Championship Sparkling Tuna Cup - Weekly Open Tournament Merivale 8 Open - LAN - Stellar Fest Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace
Brood War
General
[ASL20] Ask the mapmakers — Drop your questions BW General Discussion [BSL21] RO32 Group Stage BGH Auto Balance -> http://bghmmr.eu/ SnOw's ASL S20 Finals Review
Tourneys
[Megathread] Daily Proleagues [ASL20] Grand Finals [BSL21] RO32 Group B - Sunday 21:00 CET [BSL21] RO32 Group A - Saturday 21:00 CET
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Nintendo Switch Thread Path of Exile Stormgate/Frost Giant Megathread Should offensive tower rushing be viable in RTS games? Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread Dating: How's your luck?
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion! Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Why we need SC3
Hildegard
Reality "theory" prov…
perfectspheres
Our Last Hope in th…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1452 users

Towards a good SC bot - Month 2 Report

Blogs > imp42
Post a Reply
imp42
Profile Blog Joined November 2010
398 Posts
November 15 2016 16:05 GMT
#1
Towards a good StarCraft bot - Month 2 - Progress Report

Last month I pointed out several issues, such as:
- Poor development and testing environment
- Lack of setup to play two bots against each other
- Unmodifiable maps

I also promised to write how the type-safe API turned out. So, let’s go through these points:

Development and Testing Environment

Requirements towards a development and testing environment:

- Stability
Obviously, it should never crash. It should not require constant modifications.

- Fast test iterations
“Fail fast” (a term adopted from the lean startup methodology) applies here too . Hot swapping code (altering the code while it executes by rewriting the source, compiling on-the-fly and then swap it with the running code) really speeds up the development process.

- Traceability
Probably one of the most important features is a reliable way to link outcomes to causes. The “Credit Assignment” problem of development, so to speak… This mostly translates to good support for modular tests and a good debugger.

- Ease of use
It would be nice if you could achieve what you have in mind with relative ease. Without having to e.g. debug the development tools first, or do a lot of pre-processing steps. etc.

I am in the process of changing several parts in the tool chain. It probably deserves its own post in the near future. Some parts I am experimenting with, in random order:

- Eclipse IDE vs IntelliJ IDEA
- GNU Prolog for Javavs SWI-Prolog
- BwMirror 2.5
- BWAPI 4.0.2
- BWTA2
- Checkstyle / PMD
- Git / GitHub
- Gradle
- Quasar Fibers (lightweight threads for Java)
- Torch 7 / Lua (Neural Net programming)
- Weka 3 (Machine Learning)
- MaryTTS (speech synth)
- Windows 10 vs Ubuntu 16 (Mint)

In conclusion, I feel like the (lack of a good) development environment is one of the issues that holds back bot developers. Therefore, I am looking into providing such an environment out-of-the-box to lower the entry barrier for future developers.

Playing two bots against each other

Solved. Multi-instance Chaoslauncher now works fine. I can run two bots as Java processes together with two instances of Brood War on the same machine.

Unmodifiable maps

Solved. I got a version of Fighting Spirit which I could modify to allow for single-player or multi-player marines-only games.

Type-Safe API

Personally, type-safe development helps me a lot. I often find myself in a position where I could do things “the proper way”, with considerable effort. Or “cheating just a little bit” to get results faster, because “I can always do it the proper way later”. Well, “later” is usually “never” and that’s how technical debt accumulates. For most developers that means nobody else will understand their code. For me it means not even I will understand my own code two months from now. Type-safe environments enforce “the proper way” to some extent. It is definitely more difficult to cheat (circumventing your own software architecture guidelines for the benefit of a quick win), so you might as well do it the right way to start with.

To summarize, by now I am so convinced that I decided to release a type-safe Java API for BWAPI. It will probably be out early 2017.

Last but not least, a big announcement was made a couple of days ago:

Blizzard provides an API for SC2

This has of course already been discussed in the forums. No need to re-iterate all the points made. Let me just state two things:
- The statement that Brood War and StarCraft 2 are two different games is true even more so for AI / bots than for humans.
- Any researcher would agree that it is a good thing to have as many variables under control as possible.
Personally, I will stick with BW for a good while for sure. Not only do I like the strategic aspect of BW more, but I also feel uncomfortable developing against an API I cannot influence in any way (see the “stability” requirement in the development environment part above). Who knows at what point Blizzard will introduce new patches or even decide to shut down the API because the CEO woke up one day and found he valued paying customers higher than a handful of people doing fancy research.

Credits:
Thanks CardinalAllin!


50 pts Copper League
Acrofales
Profile Joined August 2010
Spain18109 Posts
November 16 2016 18:33 GMT
#2
I can't help you with the APIs, but in terms of Prolog, my experience is that running SWI Prolog through the JPL is faster and more stable than JIP, although if I understand things right, this GNU project is new and completely separate from JIP. An alternative is to generate prolog code and can run it as a separate process and just wait for its return. However, this only works if your prolog requirements are fairly large, and mostly independent of your Java code.
DarkNetHunter
Profile Joined October 2012
1224 Posts
November 17 2016 10:41 GMT
#3
I'm enjoying your series of blogs, as a complete non-programmer it's sometimes hard to follow but very much an interesting read!

I am happy you're sticking to BW even though the SC2 API is coming out.

Keep at it, looking forward to seeing the results of your development environment as it pans out!
Learn from the mistakes of others. You can't live long enough to make them all yourself.
Jukado
Profile Blog Joined May 2011
805 Posts
November 19 2016 12:09 GMT
#4
No worries, you can borrow my gamma-neutron demystifier anytime. By the way it also has a demistify setting incase you find yourself caught in a spontaneous indoor cloud formation.
Star Tale Public Domain project. Maps: (2)Gates Of Memphis, (2)Marshmallow Toast, (4)Bubbles, (4)Clay Fields, (6)Numbskull Desert. Also the Vaylu Public Domain Tileset. Also Ramp Palettes, Brood War guides and some fun stuff. Links in my profile
imp42
Profile Blog Joined November 2010
398 Posts
November 23 2016 05:01 GMT
#5
thanks all for your comments and input.
The deeper I dig the slower is the progress. For example, I have spent the last weeks taking several online classes on Neural Networks, in order to understand the concept better. This is obviously a bit of an investment, time-wise. I hope I can still provide content regularly.
50 pts Copper League
Please log in or register to reply.
Live Events Refresh
Korean StarCraft League
03:00
Week 82
HKG_Chickenman64
davetesta63
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 181
Nina 158
ProTech118
StarCraft: Brood War
Icarus 15
Dota 2
monkeys_forever357
NeuroSwarm97
LuMiX1
League of Legends
JimRising 569
Super Smash Bros
C9.Mang0554
Other Games
tarik_tv14330
summit1g13831
FrodaN139
WinterStarcraft79
Organizations
Other Games
gamesdonequick985
Counter-Strike
PGL130
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 11 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Stunt493
Upcoming Events
CranKy Ducklings
5h 25m
IPSL
13h 25m
dxtr13 vs OldBoy
Napoleon vs Doodle
LAN Event
13h 25m
Lambo vs Clem
Scarlett vs TriGGeR
ByuN vs TBD
Zoun vs TBD
BSL 21
15h 25m
Gosudark vs Kyrie
Gypsy vs OyAji
UltrA vs Radley
Dandy vs Ptak
Replay Cast
18h 25m
Sparkling Tuna Cup
1d 5h
WardiTV Korean Royale
1d 7h
IPSL
1d 13h
JDConan vs WIZARD
WolFix vs Cross
LAN Event
1d 13h
BSL 21
1d 15h
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
[ Show More ]
Replay Cast
2 days
Wardi Open
2 days
WardiTV Korean Royale
3 days
Replay Cast
4 days
Kung Fu Cup
4 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
4 days
The PondCast
5 days
RSL Revival
5 days
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
5 days
WardiTV Korean Royale
5 days
RSL Revival
6 days
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
6 days
Liquipedia Results

Completed

BSL 21 Points
SC4ALL: StarCraft II
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
Stellar Fest: Constellation Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.