~eliasnaur/gio-example

ref: 1ad8d13d0f99c508d3a2528dfe349f3313acc7c5 gio-example/gio-extras/outlay/fan/cribbage/cmd/crib.go -rw-r--r-- 354 bytes
1ad8d13dChris Waldon windows,multiwindow: rename package for clarity 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package main

import (
	"fmt"

	"gioui.org/example/gio-extras/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)
}