gravity_tumbler

package
v0.0.0-...-4d3ad75 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 3 Imported by: 0

README

The program must output the result of tumbling a landscape a certain number of times.

Tumbling entails:

  • rotating the landscape counterclockwise by 90°
  • letting the hash bits # fall down

The map is composed of . and #.

(This puzzle is a twist (hah!) on classic community puzzle “Gravity”. You may want to solve that one first.)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	Width  int
	Height int
	Count  int
	Fields [][]byte
}

func NewInputFromReader

func NewInputFromReader(r *os.File) (*Input, error)

func (*Input) Gravity

func (i *Input) Gravity() *Input

func (*Input) Print

func (i *Input) Print()

func (*Input) Rotate

func (i *Input) Rotate() *Input

func (*Input) Run

func (i *Input) Run() *Input

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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