reindeerolympics

package
v0.0.0-...-06eecd2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Race

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

Race represents a race of reindeer.

func New

func New(p string) *Race

New creates a new race

func (*Race) Run

func (r *Race) Run(t int)

Run runs the race for a specified time.

func (*Race) Winner

func (r *Race) Winner() string

Winner returns a message about who is the winner.

func (*Race) Winner2

func (r *Race) Winner2() string

Winner2 returns a message about who is the winner based on points.

Jump to

Keyboard shortcuts

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