baccarat

package
v0.0.0-...-822d716 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2025 License: Zlib Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPayout

func GetPayout(outcome Outcome, bet int) int

func PlayCoup

func PlayCoup(shoe []playingcard.PlayingCard) (player Hand, banker Hand, outcome Outcome)

func RandomShoe

func RandomShoe() (shoe []playingcard.PlayingCard)

Types

type Hand

type Hand struct {
	Cards []playingcard.PlayingCard
	Score uint
}

func (*Hand) Deal

func (hand *Hand) Deal(card playingcard.PlayingCard)

type Outcome

type Outcome int
const (
	OutcomePlayerWin Outcome = iota
	OutcomeBankerWin
	OutcomeTie
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL