challenge

package
Version: v0.0.0-...-dce3b4e Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

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

func FromFile

func FromFile() *Input

func FromLiteral

func FromLiteral(input string) *Input

func (*Input) LineSlice

func (c *Input) LineSlice() (result []string)

func (*Input) Lines

func (c *Input) Lines() <-chan string

func (*Input) TileMap

func (c *Input) TileMap() *TileMap

type TileMap

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

TileMap represents a fixed size grid of runes. The top-left tile is [0,0]

func NewTileMap

func NewTileMap(w, h int) *TileMap

func (*TileMap) SetTile

func (t *TileMap) SetTile(x, y int, tile rune)

func (*TileMap) Size

func (t *TileMap) Size() (int, int)

func (*TileMap) TileAt

func (t *TileMap) TileAt(x, y int) (rune, bool)

Directories

Path Synopsis
Code generated by 'go run ./gen'; DO NOT EDIT
Code generated by 'go run ./gen'; DO NOT EDIT

Jump to

Keyboard shortcuts

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