package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Apr 8, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 20
Opens a new window with list of known importers.
Documentation
¶
DeckSize of a cards of cards
func Move(from, to *Cards)
Move moves all cards from first to second set in parameters
MoveOne moves one card from first to second set in parameters
Cards type
func Deck() (cards Cards)
Deck returns a full shuffled deck with all the 40 cards
NewMust creates a set of cards with ids that must be valid
(from 1 to 40) or else it will panic
Add appends cards to the set
func (cards *Cards) Clear()
Clear removes all cards from the set
Find returns the index of the card given in input or
-1 if not found (to change with error)
Top func return the top card of the set
and deletes from it
Source Files
¶
Click to show internal directories.
Click to hide internal directories.