snengame/main.go

26 lines
444 B
Go

package main
import "fmt"
func main() {
g := NewGame()
g.PlayerStateAct(1, "b")
g.PlayerStateAct(1, "s")
tmp := g.PlayerStateAct(1, "d")
fmt.Println("begin")
fmt.Println(tmp)
fmt.Println("scry")
scry := g.PlayerAct(1, "s")
fmt.Println(scry)
fmt.Println("draw")
g.PlayerAct(1, "d 1")
h2 := g.PlayerStateAct(1, "d")
fmt.Println(h2)
fmt.Println("play")
g.PlayerAct(1, "p 1 3")
b2 := g.PlayerStateAct(1, "d")
fmt.Println(b2)
}