Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrettyCardsString ¶
Types ¶
type Card ¶
Card UNO card type
func NewVanilla ¶
NewVanilla returns a vanilla set of UNO cards
func Shuffle ¶
Shuffle returns a copy of cards in a random order for true randomness, remember to set a seed to the rand package
func (Card) String ¶
Example ¶
fmt.Println(Card{Color: Red, Value: Reverse}) fmt.Println(Card{Color: Yellow, Value: One}) fmt.Println(Card{Color: Green, Value: Skip}) fmt.Println(Card{Color: Blue, Value: Nine}) fmt.Println(Card{Color: Wild, Value: DrawFour}) fmt.Println(Card{Color: Wild, Value: Choose})
Output: Red Reverse Yellow One Green Skip Blue Nine Wild Draw Four Wild Choose
Click to show internal directories.
Click to hide internal directories.