marble

package
v0.0.0-...-0235693 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	First   *Marble
	Current *Marble
	// contains filtered or unexported fields
}

func NewGame

func NewGame(players int) *Game

func (*Game) Add

func (g *Game) Add(n int)

func (*Game) Dump

func (g *Game) Dump() string

func (*Game) Handle23

func (g *Game) Handle23(n int)

func (*Game) Highscore

func (g *Game) Highscore()

type Marble

type Marble struct {
	Value int
	Prev  *Marble
	Next  *Marble
}

type Player

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

Jump to

Keyboard shortcuts

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