Require exact roll to bear off in acey-deucey games

This commit is contained in:
Trevor Slocum 2023-11-27 20:01:38 -08:00
parent b081b604e1
commit 4ec3c542b5

View file

@ -374,7 +374,7 @@ func (g *Game) LegalMoves(local bool) [][]int {
haveBearOffDiceRoll := func(diff int) int {
var c int
for _, roll := range rolls {
if roll >= diff {
if roll == diff || (roll > diff && !g.Acey) {
c++
}
}