forked from go/golangs_learn
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.
26 lines
343 B
26 lines
343 B
3 years ago
|
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)
|
||
|
}
|