Make the AI a little smarter.

This commit is contained in:
Greyson Parrelli
2026-07-24 16:20:45 -04:00
parent e25a85e394
commit 0a1e2f9bee
4 changed files with 93 additions and 4 deletions
+5
View File
@@ -171,6 +171,11 @@ func TestSelfFaintWithReserveStillWins(t *testing.T) {
if res.WinnerSeat != 0 {
t.Fatalf("seat 0 should win with a reserve pet vs an all-food deck, got winner %d", res.WinnerSeat)
}
// The survivor margin reflects the leftover force: seat 0's unrevealed
// Reserve still counts, seat 1 has nothing.
if got := res.Survivors; len(got) != 2 || got[0] < 1 || got[1] != 0 {
t.Fatalf("survivors should be [>=1, 0], got %v", got)
}
}
// Poison Dart Frog, once set aside, throws rocks each time a Bee is played.