Add support for up to 6 players.

This commit is contained in:
Greyson Parrelli
2026-07-28 07:36:09 -04:00
parent e542118175
commit a4f5f6910d
38 changed files with 2306 additions and 713 deletions
+4 -1
View File
@@ -11,8 +11,11 @@ import (
// to spare, a loss that took most of the enemy down), but no margin, however
// lopsided, may ever raise a loss above a draw or a draw above a win.
func TestWinScoreMarginBreaksTiesNotVerdicts(t *testing.T) {
// Seat 0 fights seat 1, and is side 0 of the battle — Survivors and the
// other per-side slices are indexed by side, so the mapping has to be there
// for winScore to read the margin from the right end.
mk := func(winner, mine, theirs int) *game.BattleResult {
return &game.BattleResult{WinnerSeat: winner, Survivors: []int{mine, theirs}}
return &game.BattleResult{WinnerSeat: winner, Seats: []int{0, 1}, Survivors: []int{mine, theirs}}
}
decisiveWin := winScore(mk(0, 5, 0), 0)