combat

package
v0.0.0-...-07010e4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Play

func Play(p1Cards, p2Cards []int)

func RecursivePlay

func RecursivePlay(level int, p1Cards, p2Cards []int) int

Types

type Deck

type Deck struct {
	Cards []int
}

func (*Deck) CopyCards

func (d *Deck) CopyCards(n int) []int

func (*Deck) Hash

func (d *Deck) Hash() string

func (*Deck) IsEmpty

func (d *Deck) IsEmpty() bool

func (*Deck) Push

func (d *Deck) Push(cs ...int)

func (*Deck) Score

func (d *Deck) Score() int

func (*Deck) TakeFront

func (d *Deck) TakeFront() int

Jump to

Keyboard shortcuts

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