23
23
// An action transitions stochastically to a resulting score.
24
24
type action func(current score) (result score, turnIsOver bool)
27
27
// If the roll value is 1, then thisTurn score is abandoned, and the players'
28
28
// roles swap. Otherwise, the roll value is added to thisTurn.
29
29
func roll(s score) (score, bool) {