Add support for up to 6 players.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user