Fix pips calculation when playing acey-deucey

This commit is contained in:
Trevor Slocum 2023-12-13 21:27:50 -08:00
parent c793dc4aeb
commit 242b6132e6

View file

@ -67,9 +67,9 @@ func (g *GameState) Pips(player int) int {
pips += PlayerCheckers(g.Board[SpaceBarOpponent], player) * 25
}
if g.Acey {
if player == 1 {
if player == 1 && !g.Player1.Entered {
pips += PlayerCheckers(g.Board[SpaceHomePlayer], player) * 25
} else {
} else if player == 2 && !g.Player2.Entered {
pips += PlayerCheckers(g.Board[SpaceHomeOpponent], player) * 25
}
}