robinheghan/elm-warrior/1.0.0

NOTE: the latest version is 1.0.1

Formerly Skinney/elm-warrior. Search finds this package by either name.

Warrior.Direction

Directions are usually used to specify where an action is applied.

= Left
| Right
| Up
| Down

The different directions a player can move, look and attack. Note that there are no diagonal directions.

all : List Direction

A simple list containing all Direction values. Handy when combined with List.filter or List.map

toString : Direction -> String

Turns direction value into a human readable string