Make the AI a little smarter.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user