Voronchuk/hexagons/1.0.2

NOTE: this package is not compatible with Elm 0.19.1

Hexagons.Map

This module solves the problem of generating and storing the Map data. We are using Elm dictionary as the Map storage engine with Hex coordinate tuple as the key.

See http://www.redblobgames.com/grids/hexagons/implementation.html for reference.

Types

type alias Map =
Dict ( Int, Int, Int ) Hex

Dictionary storage to keep map of hexes

Map generators

rectangularPointyTopMap : Int -> Int -> Map

Generate Map of rectangular shape given its height and width