You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
343 B

package main
import (
"fmt"
"gioui.org/example/outlay/fan/cribbage"
)
func main() {
g := cribbage.NewGame(2)
fmt.Println(g)
g.DealRound()
fmt.Println(g)
g.Sacrifice(0, 0)
g.Sacrifice(0, 4)
g.Sacrifice(1, 0)
g.Sacrifice(1, 4)
fmt.Println(g)
g.CutAt(10)
fmt.Println(g)
g.Reset()
fmt.Println(g)
g.DealRound()
fmt.Println(g)
}