Skip to content

Commit d64a268

Browse files
snow-jallenclaude
andcommitted
The Formics hold focus-fire timing attacks; achievement "The Enemy's Gate Is Down"
Tested against stand-ins built from the strongest real bots' replays, most of which target units rather than attack-move. A 20-30 worker soldier timing with the same focus fire beat the shipped Formics nearly every time (0/16, 3/16). - Judge the enemy army by where it's heading (its growth over the last 30 ticks, 50 ahead), one on one; when outgunned, Barracks (two rising at a time), a Tech Lab with Weapons/Armor first, and towers come before expansions. - A seen rush by our buildings: fighters ignore the building reserve, the army gathers behind the Command Center instead of trickling in. - Defenders go for the biggest bunch of raiders, not the straggler nearest the Command Center (the armies were walking past each other). - Builders on their way to a site are no longer evacuated or pulled to fight (each build was re-ordered every few ticks and never finished), and build sites stay out of the danger map. Hard set (10 opponents x 16 games): 111/160 -> 137/160; house bots and the earlier stand-ins unchanged; free-for-alls level. New achievement: The Enemy's Gate Is Down (enemys-gate, Gold, house bots count): beat the Formics. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V8fdNFMnkyDNTFoKqQyD6L
1 parent 1eb5bad commit d64a268

12 files changed

Lines changed: 128 additions & 25 deletions

File tree

‎CLAUDE.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dotnet run --project src/NetRts.BotRunner -- --server http://localhost:5080 --na
4444
- `src/NetRts.Server` — ASP.NET Core minimal APIs; `Matches/MatchHost` wraps one simulation behind a lock.
4545
- `src/NetRts.Bots` — `NetRtsClient`, `BotLoop`, `PlanBot` + house bot plans, `Formics/` (the hardest house bot, its own code; `FormicsTuning` holds its numbers), and `Blocks/` (Block Bot: rule programs the server plays for a player). Both server-played bots stand on `BotView` (one tick's queries), `BotMemory` (what a bot keeps between ticks), `BotTurn` (one tick's budget, reserved units and commands; `TryTrain`/`TryBuild`/`TryResearch`/`Order` return an `Attempt`). `BotCharacterizationTests` hash every command the house bots and Block Bot send: a refactor must leave the hashes alone.
4646
- `docs/bot-guide.md` is the player-facing rules/API doc — keep it in sync with `GameRules` and the endpoints. `docs/requirements-coverage.md` maps the spec to code.
47-
- `src/NetRts.Server/Achievements` — the 77 achievements (`AchievementCatalog`; ids are stored, never change one) and their evaluation; `Recaps` — nightly ladder snapshots and the recap brief.
47+
- `src/NetRts.Server/Achievements` — the 78 achievements (`AchievementCatalog`; ids are stored, never change one) and their evaluation; `Recaps` — nightly ladder snapshots and the recap brief.
4848
- `recap/` — the nightly recap video job (Node: Azure OpenAI gpt-5.5 + Azure Speech in Foundry, Playwright + ffmpeg); `deploy/recap/setup.sh` + `main.bicep` create its Azure resources.
4949
- `src/NetRts.AppHost` — Aspire: local dev and the Azure deployment (private network, see `docs/deploying.md`).
5050

‎docs/bot-guide.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ and a person's account page shows every achievement any of their bots has earned
423423
| First steps | Lab Coat 🏠 | Complete your first research. | Bronze |
424424
| First steps | Training Wheels Off 🏠 | Beat a house bot. | Bronze |
425425
| First steps | Full House 🏠 | Beat every house bot (rusher, economist, balanced, sitter and poky), over any number of matches. | Silver |
426+
| First steps | The Enemy's Gate Is Down 🏠 | Beat the Formics, the hardest house bot. | Gold |
426427
| First steps | Blue Check 🏠 | Play a match after a Discord-verified owner claims your bot. | Bronze |
427428
| First steps | Worthy Opponent | Play a match against another real bot. | Bronze |
428429
| First steps | Suit Up | Play in a league match (preseason, season or championship). | Bronze |

‎src/NetRts.Bots/Formics/FormicsBot.Army.cs‎

Lines changed: 40 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ public sealed partial class FormicsBot
99

1010
/// <summary>The strongest enemy army is probably bigger than ours: fighters come before more workers.</summary>
1111
private bool _outnumbered;
12+
13+
/// <summary>Enemy fighters we can see by our buildings outweigh our army and towers: hold at home, all in on fighters.</summary>
14+
private bool _rushed;
15+
16+
/// <summary>One on one, the enemy army as it's growing will outweigh ours: Barracks, a Tech Lab and towers before expansions.</summary>
17+
private bool _outgunned;
18+
19+
// The strongest enemy army we expected, tick by tick, to see how fast it grows.
20+
private readonly Queue<int> _enemyArmyHistory = new();
21+
private const int GrowthWindow = 30;
1222
private int _launchValue;
1323
private readonly HashSet<int> _pulledWorkers = [];
1424

@@ -23,14 +33,30 @@ private void CommandArmy(HiveTick hive)
2333
var strongest = StrongestEnemyArmy(view);
2434
var guard = view.MyBuildings.Any(b => b.Type == BuildingType.Barracks && b.Completed) ? view.Workers.Count * _tune.ArmyPerWorker : 0;
2535
_outnumbered = armyValue < Math.Max(guard, strongest * _tune.DefendShare);
36+
var towers = view.MyBuildings.Count(b => b.Type == BuildingType.GuardTower && b.Completed) * _tune.TowerValue;
37+
// Where their army is heading: a Barracks and its first soldiers take most of this long to answer with.
38+
_enemyArmyHistory.Enqueue(strongest);
39+
var growth = _enemyArmyHistory.Count > GrowthWindow ? Math.Max(0, strongest - _enemyArmyHistory.Dequeue()) / (double)GrowthWindow : 0;
40+
var expected = strongest + (int)(growth * _tune.LookaheadTicks);
41+
// One on one, their army is coming for us; in a crowd, the big armies mostly meet each other.
42+
var duel = view.State.Players.Count(p => p.Slot != view.State.You.Slot && !p.Eliminated) == 1;
43+
_outgunned = duel && expected * _tune.DefendShare > armyValue + towers + _tune.OutgunnedMargin;
44+
45+
// An army by our buildings that we've seen with our own eyes and can't match yet: a rush. Build fighters, not expansions.
46+
var seenRecently = _enemySeen.Values
47+
.Where(e => e.Type != UnitType.Worker && hive.Tick - e.Tick <= 80 && view.MyBuildings.Any(b => Cheb(b.X, b.Y, e.X, e.Y) <= 2 * _tune.DefenseRadius))
48+
.Sum(e => view.UnitCost(e.Type));
49+
_rushed = seenRecently >= 200 && seenRecently > armyValue + towers;
2650

2751
var threats = Threats(hive);
2852
var threatValue = threats.Sum(e => view.UnitCost(e.Type));
2953
var defenders = new List<UnitDto>();
3054
if (threats.Count > 0)
3155
{
32-
// Everyone at home answers; while attacking, only as many as it takes (the nearest first).
33-
var (tx, ty) = (threats[0].X, threats[0].Y);
56+
// Everyone at home answers; while attacking, only as many as it takes (the nearest first). They go for the
57+
// biggest bunch of raiders, not a straggler, or the two armies walk past each other.
58+
var main = threats.OrderByDescending(t => threats.Where(o => Cheb(o.X, o.Y, t.X, t.Y) <= 4).Sum(o => view.UnitCost(o.Type))).First();
59+
var (tx, ty) = (main.X, main.Y);
3460
var needed = _attacking ? threatValue * 2 : int.MaxValue;
3561
foreach (var u in army.OrderBy(u => Cheb(u.X, u.Y, tx, ty)))
3662
{
@@ -43,7 +69,9 @@ private void CommandArmy(HiveTick hive)
4369
needed -= view.UnitCost(u.Type);
4470
}
4571

46-
Fight(hive, defenders, (tx, ty));
72+
// Outmatched, they gather at the Command Center (with its towers and workers) rather than trickle in one by one.
73+
var hold = (_rushed || threatValue > (armyValue * 1.3) + 100) && Cheb(tx, ty, view.CommandCenter!.X, view.CommandCenter.Y) > 3;
74+
Fight(hive, defenders, hold ? (view.CommandCenter!.X, view.CommandCenter.Y) : (tx, ty), regroup: hold);
4775
var near = defenders.Where(u => Cheb(u.X, u.Y, tx, ty) <= 8).Sum(u => view.UnitCost(u.Type));
4876
_emergency = threatValue > 150 && near < threatValue * 1.2;
4977
if (_emergency || threats.Any(t => t.Type != UnitType.Worker && near == 0))
@@ -127,7 +155,7 @@ private void PullWorkers(HiveTick hive, List<UnitDto> threats, int threatValue,
127155

128156
var want = Math.Max(0, (threatValue * 3 / 2) - defenders) / 50;
129157
foreach (var w in view.Workers
130-
.Where(w => !hive.Turn.IsClaimed(w.Id) && fighters.Any(t => Cheb(t.X, t.Y, w.X, w.Y) <= 6))
158+
.Where(w => !hive.Turn.IsClaimed(w.Id) && !_memory.IsBuilder(w.Id) && fighters.Any(t => Cheb(t.X, t.Y, w.X, w.Y) <= 6))
131159
.OrderBy(w => fighters.Min(t => Cheb(t.X, t.Y, w.X, w.Y))).Take(want))
132160
{
133161
_pulledWorkers.Add(w.Id);
@@ -143,7 +171,7 @@ private void PullWorkers(HiveTick hive, List<UnitDto> threats, int threatValue,
143171
/// <summary>Workers near an army we can't stop dig somewhere safe instead.</summary>
144172
private void Evacuate(HiveTick hive, List<UnitDto> fighters)
145173
{
146-
foreach (var w in hive.View.Workers.Where(w => !hive.Turn.IsClaimed(w.Id) && w.Activity != UnitActivity.Building
174+
foreach (var w in hive.View.Workers.Where(w => !hive.Turn.IsClaimed(w.Id) && w.Activity != UnitActivity.Building && !_memory.IsBuilder(w.Id)
147175
&& fighters.Any(t => Cheb(t.X, t.Y, w.X, w.Y) <= 7)))
148176
{
149177
_pulledWorkers.Remove(w.Id);
@@ -235,11 +263,16 @@ private void ReleaseWorkers(HiveTick hive, bool stillThreatened)
235263
return null;
236264
}
237265

238-
/// <summary>Where the army waits: ahead of the main Command Center, toward the enemy.</summary>
239-
private static (int X, int Y) RallyPoint(HiveTick hive)
266+
/// <summary>Where the army waits: ahead of the main Command Center, toward the enemy (behind it while rushed).</summary>
267+
private (int X, int Y) RallyPoint(HiveTick hive)
240268
{
241269
var cc = hive.View.CommandCenter!;
242270
var (dx, dy) = EnemyDirection(hive, cc.X, cc.Y);
271+
if (_rushed && hive.IsOpen(cc.X - dx, cc.Y - dy))
272+
{
273+
return (cc.X - dx, cc.Y - dy); // behind the Command Center, out of the way until there are enough of us
274+
}
275+
243276
for (var d = 6; d >= 2; d--)
244277
{
245278
var (x, y) = (cc.X + (dx * d), cc.Y + (dy * d));

‎src/NetRts.Bots/Formics/FormicsBot.Economy.cs‎

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ public sealed partial class FormicsBot
1010
UpgradeType.Armor2, UpgradeType.Armor3, UpgradeType.Mobility1, UpgradeType.Mobility2, UpgradeType.Fortify1, UpgradeType.Fortify2,
1111
];
1212

13+
// Under the gun, the fighting upgrades go first.
14+
private static readonly UpgradeType[] FightFirst = [UpgradeType.Weapons1, UpgradeType.Armor1, .. ResearchOrder.Except([UpgradeType.Weapons1, UpgradeType.Armor1])];
15+
1316
private int _fighterCursor;
1417

1518
/// <summary>Set by the army when the base is under attack by more than it can hold: fighters come before everything.</summary>
@@ -185,16 +188,35 @@ private bool PlanBuilding(HiveTick hive)
185188
return Place(hive, cc ? BuildingType.CommandCenter : BuildingType.ResourceDepot, depot);
186189
}
187190

191+
// Facing a bigger army than ours, Barracks come before expansions.
192+
var barracks = Have(BuildingType.Barracks);
193+
var barracksWanted = workers < _tune.FirstBarracksWorkers && !_emergency && !_outnumbered ? 0
194+
: Math.Clamp((int)Math.Ceiling(hive.IncomePerTick * (_rushed ? 1.0 : ArmyShare(hive)) / _tune.IncomePerBarracks) + (view.State.You.Resources / 800), 1, _tune.MaxBarracks);
195+
var rising = barracks - view.MyBuildings.Count(b => b.Type == BuildingType.Barracks && b.Completed);
196+
if ((_outgunned || _rushed) && barracks < barracksWanted && rising < 2)
197+
{
198+
return PlaceNearBase(hive, BuildingType.Barracks);
199+
}
200+
201+
// Upgraded soldiers beat more soldiers.
202+
if ((_outgunned || _rushed) && barracks >= 2 && Have(BuildingType.TechLab) == 0)
203+
{
204+
return PlaceNearBase(hive, BuildingType.TechLab);
205+
}
206+
207+
// ...and towers by the Command Centers: a tower holds off three soldiers for the price of one and a quarter.
208+
if ((_outgunned || _rushed) && view.MyBuildings.Any(b => b.Type == BuildingType.Barracks && b.Completed) && TowerWanted(hive) is { } guard)
209+
{
210+
return Place(hive, BuildingType.GuardTower, guard);
211+
}
212+
188213
// 2. More Command Centers: more workers at once, and the free corners' grubs.
189-
if (Have(BuildingType.CommandCenter) < CommandCentersWanted(workers) && DropOffWanted(hive, onlyNear: false) is { } expansion)
214+
if (!_rushed && !_outgunned && Have(BuildingType.CommandCenter) < CommandCentersWanted(workers) && DropOffWanted(hive, onlyNear: false) is { } expansion)
190215
{
191216
return Place(hive, BuildingType.CommandCenter, expansion, helpers: 2);
192217
}
193218

194219
// 3. Barracks, Tech Labs, towers.
195-
var barracks = Have(BuildingType.Barracks);
196-
var barracksWanted = workers < _tune.FirstBarracksWorkers && !_emergency && !_outnumbered ? 0
197-
: Math.Clamp((int)Math.Ceiling(hive.IncomePerTick * ArmyShare(hive) / _tune.IncomePerBarracks) + (view.State.You.Resources / 800), 1, _tune.MaxBarracks);
198220
var hasBarracks = view.MyBuildings.Any(b => b.Type == BuildingType.Barracks && b.Completed);
199221
var labs = Have(BuildingType.TechLab);
200222
var labsWanted = !hasBarracks ? 0 : workers >= 45 ? 2 : 1;
@@ -213,7 +235,7 @@ private bool PlanBuilding(HiveTick hive)
213235
return Place(hive, BuildingType.GuardTower, tower);
214236
}
215237

216-
if (barracks < barracksWanted)
238+
if (barracks < barracksWanted && rising < 3)
217239
{
218240
return PlaceNearBase(hive, BuildingType.Barracks);
219241
}
@@ -326,7 +348,7 @@ private bool SafeField(HiveTick hive, OreField field)
326348
private (int X, int Y)? TowerWanted(HiveTick hive)
327349
{
328350
var view = hive.View;
329-
if (view.Workers.Count < _tune.TowersFromWorkers || _tune.TowersPerBase == 0)
351+
if ((view.Workers.Count < _tune.TowersFromWorkers && !_emergency && !_outgunned) || _tune.TowersPerBase == 0)
330352
{
331353
return null;
332354
}
@@ -383,7 +405,7 @@ private bool Place(HiveTick hive, BuildingType type, (int X, int Y) site, int he
383405
return true;
384406
}
385407

386-
/// <summary>The nearest open tile to (ax, ay) with a free tile all round, off the ore, a few tiles from (cx, cy).</summary>
408+
/// <summary>The nearest open tile to (ax, ay) with a free tile all round, off the ore, out of the enemy's reach, a few tiles from (cx, cy).</summary>
387409
private static (int X, int Y)? FindSite(HiveTick hive, int ax, int ay, int cx, int cy)
388410
{
389411
(int X, int Y)? best = null;
@@ -392,7 +414,7 @@ private static (int X, int Y)? FindSite(HiveTick hive, int ax, int ay, int cx, i
392414
{
393415
for (var x = ax - 7; x <= ax + 7; x++)
394416
{
395-
if (!hive.IsOpen(x, y) || Cheb(x, y, cx, cy) < 2 || !RoomAround(hive, x, y))
417+
if (!hive.IsOpen(x, y) || Cheb(x, y, cx, cy) < 2 || !RoomAround(hive, x, y) || hive.IsDangerous(x, y))
396418
{
397419
continue;
398420
}
@@ -447,7 +469,7 @@ private void Research(HiveTick hive)
447469
return;
448470
}
449471

450-
foreach (var upgrade in ResearchOrder)
472+
foreach (var upgrade in _outgunned || _rushed ? FightFirst : ResearchOrder)
451473
{
452474
var stats = view.Rules.Upgrades.First(u => u.Type == upgrade);
453475
if (Budget(hive) < stats.Cost)
@@ -471,7 +493,7 @@ private void TrainFighters(HiveTick hive)
471493
{
472494
var type = _tune.ArcherEvery > 0 && _fighterCursor % _tune.ArcherEvery == _tune.ArcherEvery - 1 ? UnitType.Archer : UnitType.Soldier;
473495
var cost = view.UnitCost(type);
474-
if (Budget(hive) - (_emergency ? 0 : hive.Reserved) < cost)
496+
if (Budget(hive) - (_emergency || _rushed ? 0 : hive.Reserved) < cost)
475497
{
476498
return;
477499
}

‎src/NetRts.Bots/Formics/FormicsTuning.cs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ internal sealed record FormicsTuning
9696
/// <summary>Once there's a Barracks, keep this many grubs of army per worker.</summary>
9797
public int ArmyPerWorker { get; init; } = 25;
9898

99+
/// <summary>An expected enemy army this much bigger than ours and our towers puts Barracks and towers before expansions.</summary>
100+
public int OutgunnedMargin { get; init; } = 700;
101+
102+
/// <summary>Judge the enemy army by what it will be this many ticks on, at the rate it's growing.</summary>
103+
public int LookaheadTicks { get; init; } = 50;
104+
99105
/// <summary>Keep the army at least this share of the strongest enemy army we expect.</summary>
100106
public double DefendShare { get; init; } = 0.9;
101107

‎src/NetRts.Server/Achievements/AchievementCatalog.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ public static class AchievementCatalog
6363
c => c.Won && c.Others.Any(o => o.IsHouseBot), HouseBotsCount: true),
6464
new("full-house", "Full House", "Beat every house bot (rusher, economist, balanced, sitter and poky), over any number of matches.", FirstSteps, Silver,
6565
c => c.Won && c.HouseBotIds.Count > 0 && c.HouseBotIds.All(c.HasBeaten), HouseBotsCount: true),
66+
new("enemys-gate", "The Enemy's Gate Is Down", "Beat the Formics, the hardest house bot.", FirstSteps, Gold,
67+
c => c.Won && c.FormicsId is { } formics && c.Others.Any(o => o.PlayerId == formics), HouseBotsCount: true),
6668
new("blue-check", "Blue Check", "Play a match after a Discord-verified owner claims your bot.", FirstSteps, Bronze, c => c.Verified, HouseBotsCount: true),
6769
new("worthy-opponent", "Worthy Opponent", "Play a match against another real bot.", FirstSteps, Bronze, _ => true),
6870
new("suit-up", "Suit Up", "Play in a league match (preseason, season or championship).", FirstSteps, Bronze,

‎src/NetRts.Server/Achievements/AchievementContext.cs‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public sealed class AchievementContext
2020
/// <param name="bestRating">The bot's best rating in any category, now.</param>
2121
/// <param name="ownerBotsWithRealWins">How many of the owner's verified bots have beaten a real bot.</param>
2222
/// <param name="zone">The server's local time zone.</param>
23+
/// <param name="formicsId">The Formics' player id, if they're seeded.</param>
2324
public AchievementContext(
2425
MatchPlayerRecord row,
2526
PlayerResultDto result,
@@ -31,7 +32,8 @@ public AchievementContext(
3132
bool verified,
3233
int bestRating,
3334
int ownerBotsWithRealWins,
34-
TimeZoneInfo zone)
35+
TimeZoneInfo zone,
36+
Guid? formicsId = null)
3537
{
3638
Row = row;
3739
Result = result;
@@ -40,6 +42,7 @@ public AchievementContext(
4042
_zone = zone;
4143
MaxTicks = maxTicks;
4244
HouseBotIds = houseBotIds;
45+
FormicsId = formicsId;
4346
Verified = verified;
4447
BestRating = bestRating;
4548
OwnerBotsWithRealWins = ownerBotsWithRealWins;
@@ -59,6 +62,9 @@ public AchievementContext(
5962

6063
public int MaxTicks { get; }
6164
public IReadOnlyCollection<Guid> HouseBotIds { get; }
65+
66+
/// <summary>The Formics' player id (the hardest house bot), if they're seeded.</summary>
67+
public Guid? FormicsId { get; }
6268
public bool Verified { get; }
6369
public int BestRating { get; }
6470
public int OwnerBotsWithRealWins { get; }

‎src/NetRts.Server/Achievements/AchievementService.cs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ private async Task EvaluateAsync(Guid matchId, CancellationToken ct)
120120
: 0;
121121
var verified = Accounts.IsVerified(bot.Owner, discord.Value);
122122
var context = new AchievementContext(row, result.Players.First(p => p.Slot == row.Slot), result.Players, history,
123-
opponents.ToLookup(o => o.MatchId), match.MaxTicks, houseBots.FullHouseIds, verified, bestRating, ownerBots, options.Value.Zone);
123+
opponents.ToLookup(o => o.MatchId), match.MaxTicks, houseBots.FullHouseIds, verified, bestRating, ownerBots, options.Value.Zone,
124+
houseBots.FormicsId);
124125
await AwardAsync(db, context, match.CompletedAt, announce: (bot.Name, verified, verified ? bot.Owner!.DisplayName : null), ct);
125126
}
126127
}
@@ -309,7 +310,7 @@ internal async Task BackfillAsync(CancellationToken ct)
309310
opponents, match.MaxTicks, houseBots.FullHouseIds, Accounts.IsVerified(bot.Owner, discord.Value),
310311
ratings.GetValueOrDefault(row.PlayerId, Elo.InitialRating),
311312
bot.OwnerAccountId is { } o && winners.TryGetValue(o, out var bots) ? bots.Count : 0,
312-
options.Value.Zone);
313+
options.Value.Zone, houseBots.FormicsId);
313314
foreach (var achievement in Earned(context).Where(a => have.Add((row.PlayerId, a.Id))))
314315
{
315316
db.BotAchievements.Add(new BotAchievementRecord

‎src/NetRts.Server/Matches/MatchManager.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public sealed class HouseBotDirectory
2424
public void Register(string bot, Guid playerId) => _ids[bot] = playerId;
2525

2626
/// <summary>The player ids of the house bots Full House asks for (<see cref="HouseBots.FullHouse"/>).</summary>
27+
/// <summary>The Formics' player id, for The Enemy's Gate Is Down.</summary>
28+
public Guid? FormicsId => _ids.TryGetValue("formics", out var id) ? id : null;
29+
2730
public IReadOnlyCollection<Guid> FullHouseIds => [.. HouseBots.FullHouse.Where(_ids.ContainsKey).Select(b => _ids[b])];
2831

2932
public Guid IdOf(string bot) =>

‎tests/NetRts.Engine.Tests/BotCharacterizationTests.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class BotCharacterizationTests
2828
[InlineData("balanced", "rusher", 3, "58E92A55DA4729E9")]
2929
[InlineData("sitter", "economist", 3, "38B785BE61937893")]
3030
[InlineData("poky", "balanced", 1, "23A09C3B0088ADDB")]
31-
[InlineData("formics", "economist", 2, "6216F1EC944EEC94")]
31+
[InlineData("formics", "economist", 2, "8D7479371B6DA208")]
3232
public void House_bots_play_the_same_commands(string bot0, string bot1, int seed, string expected)
3333
{
3434
var hash = PlayAndHash(seed, [HouseBots.Create(bot0), HouseBots.Create(bot1)], blocks: null);

0 commit comments

Comments
 (0)