rabbit

package
v0.0.0-...-ae99765 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 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 Rabbit

type Rabbit struct {
	Holes    int
	Position int
}

func New

func New(holes int, initialPosition int) Rabbit

func (*Rabbit) Move

func (r *Rabbit) Move()

func (*Rabbit) Shoot

func (r *Rabbit) Shoot(hole int)

Jump to

Keyboard shortcuts

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