Skinney/elm-warrior/4.0.4

NOTE: the latest version is 4.0.5

Renamed to robinheghan/elm-warrior. It is published under that name, and new versions come out there.

Versions published as Skinney/elm-warrior still install under that name. 15 versions of 15 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/robinheghan/elm-warrior.

What we checked: The repo moved to github.com/robinheghan/elm-warrior. Rebuilt with git archive from commit 76835b104e88 of https://github.com/robinheghan/elm-warrior (zip prefix Skinney-elm-warrior-76835b1/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 6146838352631f775cb4a0e89fd516e680a424bf.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/Skinney/elm-warrior/zipball/4.0.4/

Warrior.Map

This module contains functions which allow you look around a map, based on the location of a warrior.

type alias Map =
Map

A map, represented by a grid of tiles.

Search

look : Direction -> Warrior -> Map -> List ( Coordinate, Tile )

Provides a list of everything the warrior can see in a specific direction. The first item of the list will be the one tile away. The second item will be two tiles away, etc.

lookDown : Warrior -> Map -> Tile

Describe what is at the warrior's feet. Usually this will just be empty space, but occasionally you might see an item worth picking up.