mirror of
https://github.com/golang/go
synced 2024-11-21 22:14:41 -07:00
doc/codewalk: gofmt pig.go
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7221079
This commit is contained in:
parent
5c659d7362
commit
d314e3a68e
@ -23,7 +23,7 @@ type score struct {
|
||||
// An action transitions stochastically to a resulting score.
|
||||
type action func(current score) (result score, turnIsOver bool)
|
||||
|
||||
// roll returns the (result, turnIsOver) outcome of simulating a die roll.
|
||||
// roll returns the (result, turnIsOver) outcome of simulating a die roll.
|
||||
// If the roll value is 1, then thisTurn score is abandoned, and the players'
|
||||
// roles swap. Otherwise, the roll value is added to thisTurn.
|
||||
func roll(s score) (score, bool) {
|
||||
|
Loading…
Reference in New Issue
Block a user