Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcScore ¶
func CalcScore(g *PlaceItGame) int
Types ¶
type ErrGameInvalidState ¶
func (*ErrGameInvalidState) Error ¶
func (e *ErrGameInvalidState) Error() string
type ErrPlaceOutofBounds ¶
type ErrPlaceOutofBounds struct {
// contains filtered or unexported fields
}
func (*ErrPlaceOutofBounds) Error ¶
func (e *ErrPlaceOutofBounds) Error() string
type PlaceItGame ¶
type PlaceItGame struct { Slots []int State GameState CurDraw int ValidSlots []int Deck []int Score int }
func NewGame ¶
func NewGame() PlaceItGame
func (*PlaceItGame) Draw ¶
func (g *PlaceItGame) Draw() error
func (*PlaceItGame) Place ¶
func (g *PlaceItGame) Place(i int) error
func (PlaceItGame) String ¶
func (g PlaceItGame) String() string
Click to show internal directories.
Click to hide internal directories.