card

package
v0.0.0-...-e417ecf Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2017 License: GPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	CardInvalid card = iota - 1

	// Clubs
	Card2c
	Card3c
	Card4c
	Card5c
	Card6c
	Card7c
	Card8c
	Card9c
	CardTc
	CardJc
	CardQc
	CardKc
	CardAc

	// Diamonds
	Card2d
	Card3d
	Card4d
	Card5d
	Card6d
	Card7d
	Card8d
	Card9d
	CardTd
	CardJd
	CardQd
	CardKd
	CardAd

	// Hearts
	Card2h
	Card3h
	Card4h
	Card5h
	Card6h
	Card7h
	Card8h
	Card9h
	CardTh
	CardJh
	CardQh
	CardKh
	CardAh

	// Spades
	Card2s
	Card3s
	Card4s
	Card5s
	Card6s
	Card7s
	Card8s
	Card9s
	CardTs
	CardJs
	CardQs
	CardKs
	CardAs
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card interface {
	Card() card
	String() string
}

func ParseCard

func ParseCard(str string) (Card, error)

Jump to

Keyboard shortcuts

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