README
Hex Storage
Store and retrieve values based on the q and r coordinates in a hex grid.
Usage
import grid from '@bockit/hex-storage'
let storage = grid()
storage.set(0, 0, { some: 'data' })
storage.get(0, 0) // { some: 'data' }
Hexagon grid storage
<script type="module">
import bockitHexStorage from 'https://cdn.skypack.dev/@bockit/hex-storage';
</script>
Store and retrieve values based on the q and r coordinates in a hex grid.
import grid from '@bockit/hex-storage'
let storage = grid()
storage.set(0, 0, { some: 'data' })
storage.get(0, 0) // { some: 'data' }