~bonbon/gmcts

ref: f4368f9a11fb1e5e4d23b8cb9a0873b147c98012 gmcts/utils.go -rw-r--r-- 202 bytes
f4368f9abonbon add Hash() as a required method on Game 1 year, 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
package gmcts

import "fmt"

func panicIfNoActions(game Game, actions []Action) {
	if len(actions) == 0 {
		panic(fmt.Sprintf("gmcts: game returned no actions on a non-terminal state: %#v", game))
	}
}