Skip to content

bmnielsen/Hugh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hugh

AI for StarCraft: Brood War

About

Hugh is the little brother of Locutus. Hugh was created for the AI TinyCraft Tournament, so called as participating bots consist of a single C++ header file not exceeding 3000 bytes.

As Hugh includes some hard-coded position information, it can only play the maps in the AITT map pool.

Hugh.h is the file with comments and line breaks that I used while developing, and Hugh.min.h is the version submitted for the tournament that has comments and unnecessary whitespace removed.

Building

  1. Download BWAPI 4.2.0
  2. Rename Hugh.h to ExampleAIModule.h and overwrite the ExampleAIModule.h in the BWAPI example projects
  3. Remove ExampleAIModule.cpp from the BWAPI example projects
  4. Build the BWAPI example projects

Hugh will now be built to ExampleAIModule.dll.

Feature costs

I was curious about how much each feature "cost" in terms of file size, so I did a byte count.

Feature Size
Forge expand build: hard-coded building locations and the code needed to decode them 508
Target queue 323
Mining (keeping track of resources, worker micro, mineral locking, etc.) 313
Basic build logic (build pylons and gateways appropriately, build worker micro, etc.) 305
Forge expand build: the build order and logic needed to follow it 256
Goon-specific micro (not cancelling attacks, kiting) 174
Read/write to learning file 159
Basic micro (attack move) 141
Worker defense 124
Training units 103
Uncategorized 594

About

AI for StarCraft: Brood War

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages