• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 06:22
CET 12:22
KST 20:22
  • 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
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
ComeBackTV's documentary on Byun's Career !3Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win3Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15
StarCraft 2
General
Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win ComeBackTV's documentary on Byun's Career ! Did they add GM to 2v2? RSL Revival - 2025 Season Finals Preview Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump
Tourneys
RSL Offline Finals Info - Dec 13 and 14! Master Swan Open (Global Bronze-Master 2) Winter Warp Gate Amateur Showdown #1: Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle How Rain Became ProGamer in Just 3 Months BGH Auto Balance -> http://bghmmr.eu/ [BSL21] RO8 Bracket & Prediction Contest BW General Discussion
Tourneys
[Megathread] Daily Proleagues [BSL21] WB SEMIFINALS - Saturday 21:00 CET [BSL21] RO8 - Day 2 - Sunday 21:00 CET [ASL20] Grand Finals
Strategy
Game Theory for Starcraft Current Meta Simple Questions, Simple Answers Fighting Spirit mining rates
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile General RTS Discussion Thread Dawn of War IV Nintendo Switch Thread
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
Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine The Games Industry And ATVI Russo-Ukrainian War Thread YouTube Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
TL+ Announced Where to ask questions and add stream?
Blogs
How Sleep Deprivation Affect…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1725 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
Spain18151 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
The PondCast
10:00
Episode 76
CranKy Ducklings36
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 273
trigger 18
ForJumy 7
StarCraft: Brood War
Britney 23045
Rain 4909
actioN 1820
GuemChi 1362
Horang2 1204
Soma 464
Stork 385
ZerO 273
Light 267
Larva 235
[ Show more ]
Mini 225
EffOrt 209
Last 177
Hyuk 176
Sharp 151
Pusan 149
firebathero 148
Hyun 143
BeSt 142
Zeus 110
hero 94
Rush 83
sorry 72
Barracks 62
Mind 60
JulyZerg 38
JYJ 30
yabsab 28
soO 26
Sacsri 24
Sea.KH 16
Mong 14
Shine 12
Icarus 12
Terrorterran 11
Movie 11
Noble 10
Shinee 1
Dota 2
singsing1246
Gorgc721
XcaliburYe109
League of Legends
C9.Mang0326
Counter-Strike
olofmeister5580
shoxiejesuss853
pashabiceps621
x6flipin167
byalli139
allub134
Other Games
ceh9679
B2W.Neo559
crisheroes291
Mew2King70
Livibee65
QueenE33
Trikslyr30
Organizations
StarCraft: Brood War
Kim Chul Min (afreeca) 1441
Other Games
gamesdonequick689
StarCraft: Brood War
UltimateBattle 74
lovetv 9
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• Berry_CruncH114
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 7
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota266
Upcoming Events
WardiTV 2025
1h 38m
Cure vs Creator
Solar vs TBD
herO vs Spirit
Scarlett vs Gerald
Rogue vs Shameless
MaNa vs ShoWTimE
Nice vs TBD
WardiTV 2025
23h 38m
ByuN vs TBD
Clem vs TBD
OSC
1d 2h
CranKy Ducklings
1d 22h
WardiTV 2025
1d 23h
SC Evo League
2 days
Ladder Legends
2 days
BSL 21
2 days
Sziky vs Dewalt
eOnzErG vs Cross
Sparkling Tuna Cup
2 days
Ladder Legends
3 days
[ Show More ]
BSL 21
3 days
StRyKeR vs TBD
Bonyth vs TBD
Replay Cast
3 days
Wardi Open
4 days
Monday Night Weeklies
4 days
WardiTV Invitational
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Offline Finals
Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
WardiTV 2025
META Madness #9
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
OSC Championship Season 13
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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.