danneu / elm-hex-grid

a hex-grid library for elm
17 stars 5 forks source link

Consider replacing direction ints with enums #4

Open danneu opened 6 years ago

danneu commented 6 years ago

0-5 represent the six directions on a hexagonal grid.

I could replace them with E | NE | N | NW | W | SW | S | SE.

Pros:

Cons:

I would have to see if this cleans up some of my code in my games that use this library before I'd actually commit to it.