Then I made increasingly more complex versions of the game, starting as simple as possible:
=> Only plains
=> 4x4 map
=> only HQs
=> 1 infantry each.
I trained the AI against a proportion of each opponent for each phase and benchmark.
I also train it vs itself, and vs a previous snapshot, to see if there is a real improvement.
Each training phase either makes the map larger, adds a unit, or a building.
Total: 1.59M games finished, 120.7M moves made to be able to win with infantry spam.
Phase 1: 4x4 maps, 1 infantry, HQ only
=> 630,976 games played
Phase 2: 4x4, 2 infantry
=> 402,179 games
Phase 3: 6x6, 2-3 infantry
=> 280,285 games
Phase 4: 6x6, + 1 base
=> 102,056 games
Phase 5: 8x8, 2 bases, infantry
=> 43,403 games
Phase 6: 8x8, + recon (motorized unit, counter to infantry)
=> 16,996 games
Phase 7: 8x8, + tank
=> 33,512 games
Phase 8: 8x8, + mech (bazooka, counter to tank)
=> 38,187 games
Phase 9: 8x8, all 4 units, pre-deployed units
=> 37,160 games
Learning rate and entropy coefficient go down.
Entropy coefficient encourages exploration.
来源:Rani · x.com