robot

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Robot

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

Robot describes a hull painting robot.

func New

func New(c *computer.Computer) *Robot

New creates a new robot with a provided computer.

func (*Robot) Paint

func (r *Robot) Paint(start int)

Paint performs the paint operation on the hull.

func (*Robot) PrintHull

func (r *Robot) PrintHull() (ret int)

PrintHull displays the hull on stdout.

Jump to

Keyboard shortcuts

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