pieceset

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PieceSet

type PieceSet struct {
	Pieces []*piece.Piece
}

PieceSet is a slice of Piece with methods for operating on that slice.

func (*PieceSet) Add

func (l *PieceSet) Add(pe *piece.Piece) bool

Add the piece to the set.

func (*PieceSet) Has

func (l *PieceSet) Has(pe *piece.Piece) bool

Has returns true if the set contains the piece.

func (*PieceSet) Len

func (l *PieceSet) Len() int

Len returns the number of pieces in the set.

func (*PieceSet) Remove

func (l *PieceSet) Remove(pe *piece.Piece) bool

Remove the piece from the set.

Jump to

Keyboard shortcuts

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