game

package
v0.0.0-...-4df7676 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	Dealer  *player.Dealer
	Players []*player.Player
	Cards   []deck.Card
	Score   *Score
	// contains filtered or unexported fields
}

Game represents a blackjack game

func New

func New(nbPlayers int) Game

New game

func (*Game) Run

func (g *Game) Run()

Run blackjack game

type Score

type Score struct {
	Players map[int]int
	Dealer  int
}

Score of the players and dealer

Jump to

Keyboard shortcuts

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