~bonbon/gmcts

gmcts/utils.go -rw-r--r-- 202 bytes
f7bd5ecabonbon move v2.0.0 changes to v2 folder 1 year, 4 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))
	}
}