round

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Round

type Round struct {
	// contains filtered or unexported fields
}

Round is an array of hands with a winner and won points

func New

func New() Round

New returns an empty Round

func (*Round) AddHand

func (r *Round) AddHand(hand hand.Hand)

AddHand adds and Hand to Hands

func (*Round) ComputeWinner

func (r *Round) ComputeWinner(briscola card.Card) (err error)

ComputeWinner and returns the winning Hand

func (Round) GetHands

func (r Round) GetHands() []hand.Hand

GetHands returns []Hands

func (Round) GetWinner

func (r Round) GetWinner() player.Player

GetWinner returns the winner

func (Round) HasABriscola

func (r Round) HasABriscola(briscola card.Card) bool

HasABriscola returns true if a briscola has played in this round

func (Round) IsPassed

func (r Round) IsPassed(crd card.Card) bool

IsPassed returns true if a Card is played

Jump to

Keyboard shortcuts

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