poker

package module
v0.0.0-...-e38068d Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 1 Imported by: 0

README

poker-chip-allocation

Go library to allocate poker chips based on a ranking and bets

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlayerMap

type PlayerMap map[string]int

func Allocate

func Allocate(rank [][]string, b PlayerMap) PlayerMap

Allocate receives a ranking of player ids and a map of [playerId]: betAmount It returns a map of [playerId]: receivedAmount

Jump to

Keyboard shortcuts

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