TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How would you build an interactive hex-grid for web?

2 pointsby r2b2over 1 year ago
I&#x27;m working on a board game and would like to build dynamic board builder&#x2F;generator for the web.<p>Do you know of any JavaScript OSS libraries for working with clickable hexagon grids in HTML?<p>Or would go straight to something more custom like D3 &#x2F; SVG?<p>Thanks!

2 comments

acemarkeover 1 year ago
Start with the canonical resource for how to draw hexes in code:<p><a href="https:&#x2F;&#x2F;www.redblobgames.com&#x2F;grids&#x2F;hexagons&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.redblobgames.com&#x2F;grids&#x2F;hexagons&#x2F;</a>
surprisetalkover 1 year ago
I made an online hexagonal chess game a few months ago. You can see how I did it with plain HTML&#x2F;CSS&#x2F;JS:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;surprisetalk&#x2F;chexs">https:&#x2F;&#x2F;github.com&#x2F;surprisetalk&#x2F;chexs</a>