Documentation ¶
Index ¶
- type Card
- func (c Card) Equals(card Card) bool
- func (c Card) IsBriscola(briscola Card) bool
- func (c Card) IsExpendable() bool
- func (c Card) IsGreatherThan(card Card) bool
- func (c Card) IsValid() bool
- func (c Card) Points() int
- func (c Card) Seed() seed.Seed
- func (c Card) String() string
- func (c Card) Value() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Card ¶
type Card struct {
// contains filtered or unexported fields
}
Card type
func (Card) IsBriscola ¶
IsBriscola returns true if card has the same seed of the one passed
func (Card) IsExpendable ¶
IsExpendable returns true if the card is expendable
func (Card) IsGreatherThan ¶
IsGreatherThan return true if Points() of the first card are greather than the given card.
Click to show internal directories.
Click to hide internal directories.