tukopoly

package
v0.0.0-...-7ef7a1e Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: Zlib Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const RoyaltyBasePerCardOfRank = 4
View Source
const RoyaltyFacePercentPerCardOfSuit = 0.02

Variables

This section is empty.

Functions

func GetLicensePrice

func GetLicensePrice(card playingcard.PlayingCard) int

func GetRoyalties

func GetRoyalties[K comparable, V Player](
	players map[K]V, coup CoupResult) map[K]map[playingcard.PlayingCard]Royalty

Types

type CoupResult

type CoupResult struct {
	PlayerHand baccarat.Hand
	BankerHand baccarat.Hand
	BettorWon  bool
}

type Player

type Player interface {
	IsLicensee(playingcard.PlayingCard) bool
}

type Royalty

type Royalty struct {
	Base       int
	Percentage float64
}

Jump to

Keyboard shortcuts

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