Skinney / elm-warrior / Warrior.Direction

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


type Direction
    = 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