Skinney/elm-warrior/2.0.0

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 1f8259946940 of https://github.com/robinheghan/elm-warrior (zip prefix Skinney-elm-warrior-1f82599/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 80f5761a0ce635847bcf85d6a0f3204cece0aa3f.

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/2.0.0/

Warrior

Contains the essential logic for rendering and defining the game. The Map and Player modules will probably be more interesting.

type Model

The game model.

type Msg

The game message type.

type alias PlayerTurnFunction =

The type signature of an AI turn function

type alias Config =
{ maps : List Map
, player : PlayerTurnFunction
, msPerTurn : Float
}

How would you like the game to be played? Which maps would you like to see the player try on, and how many milliseconds should we wait before showing the next turn?

program : Config -> Program () Model Msg

Use this in your main function to start the game.