Merge branch 'master' of github.com:sneak/gopoker

This commit is contained in:
2024-05-12 15:54:12 -07:00
committed by sneak
13 changed files with 772 additions and 171 deletions
+11 -3
View File
@@ -1,10 +1,18 @@
package main
import "fmt"
import "github.com/sneak/gopoker/pokercore"
import (
"fmt"
"git.eeqj.de/sneak/go-poker/pokercore"
)
func main() {
myDeck := pokercore.NewDeck()
myDeck.ShuffleRandomly()
fmt.Println("%s", myDeck.Cards)
a := myDeck.Deal(5)
b := myDeck.Deal(7)
a.PrintToTerminal()
fmt.Printf("\n%#v\n", a)
b.PrintToTerminal()
fmt.Printf("\n%#v\n", b)
}