game

package
v0.0.0-...-24b7180 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Shuffle

func Shuffle(cards []Card)

Shuffle randomizes the order of the supplied cards

Types

type Card

type Card struct {
	Suit string
	Face string
}

Card represents a single playing card

func NewDeck

func NewDeck() []Card

NewDeck creates a deck of cards (NOTE: the cards are in predictable order)

Jump to

Keyboard shortcuts

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