danneu / elm-hex-grid

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

Coordinate between the 3 Elm hexagon libraries #1

Open seagreen opened 7 years ago

seagreen commented 7 years ago

In addition to this library, there's also https://github.com/etaque/elm-hexagons by @etaque and https://github.com/Voronchuk/hexagons by @Voronchuk. I totally understand that sometimes similar libraries are developed in parallel for various reasons, but would it be a good idea to make a short summary of the three to help beginners choose between them?

Edit: cross posted to /r/elm: https://www.reddit.com/r/elm/comments/6p4kfo/which_hexgrid_library_is_most_usable/

Voronchuk commented 7 years ago

Hi @seagreen, I'm actively using my library so I'm open to a discussion.

Voronchuk commented 7 years ago

In terms of functionality Voronchuk/hexagons is lacking pathfinding functions, because I use backend for that and generally more abstract then this library.

danneu commented 7 years ago

The benefits of my library are that I extracted it from my own project, it's minimal, and it does everything you can see on its interactive demo like pathfinding.

The downsides are that it's unpublished + unmaintained since I stopped working on the project that used it.

If I was a beginner, I'd start with the project that's most maintained which won't be mine. But check mine out if you want a reference for yak-shaving your own solution.

I want to write tests for it and fix the demo so that I can at least publish it, but it's been a while since I've used Elm.

seagreen commented 7 years ago

First, having three hexagon libraries to choose from is a pretty hilarious problem to have in a language as small as Elm, so thanks guys:heart:

It sounds like @Voronchuk's library is going to be the one to use going forwards. I started with this one, so that's what I'll keep using for now, but I'll plan on switching at some point.

I do have one question about it though, does it have an equivalent to this lib's HexGrid type (defined here? I'm writing an arcade game and being able to build it around a HexGrid TileInfo is proving pretty handy.

etaque commented 7 years ago

Hi, Same as @danneu, my package was extracted from my game and is under minimal maintenance mode, like the game.

seagreen commented 7 years ago

Thanks for the answers everybody! I've opened an issue for my question about hexagons above within that repo, so as far as I'm concerned feel free to close this.