Questions tagged [hexagonal-tiles]

Tessellating tiles for use as 2d-histogram bins, game boards, etc.

Hexagonal tiles are tessellating hexagons placed adjacently to each other.

The use of this tag is fairly broad, encompassing statistics, computer science and game design.

234 questions
0
votes
2 answers

Drawing lines in love2d crashes program

I'm trying to draw a hexagonal grid with love2d using love.graphics.line but after drawing around 15000 lines the program crashes with only one message abort (core dumped). function love.load() ww, wh = love.graphics.getDimensions() …
argot
  • 77
  • 7
0
votes
0 answers

hexbin and ggplot in different panels

I'd like to combine a hexbin plot with a ggplot in different panels in R. I can get kinda close, but it's still not working: library(hexbin) library(ggplot2) library(grid) x1 <- rnorm(100) y1 <- rnorm(100) x2 <- rnorm(100, 1, 0.2) y2 <-…
Eden
  • 335
  • 2
  • 8
0
votes
0 answers

How do I get my set to stop adding duplicates?

I am making an implementation of the game Hexic. The game is centered around making clusters of Hexagons in order to remove them from the board. I have found a way to identify the coordinates of every hexagon that is part of a cluster in order to…
Jonas
  • 1
0
votes
1 answer

Apply alpha-zero-general to Abalone (a hexagonal board game)

I’m trying to use alpha zero general to apply on Abalone. And here is the original code of alpha zero general: https://github.com/suragnair/alpha-zero-general There are implements of some rectangle board games such as connect4, gobang, othello,…
0
votes
1 answer

Generate hexagon lattices graph on the world using Networkx

I want to generate a hexagon grid on the ocean for finding a shortest path. Networkx provides lattice.hexagonal_lattice_graph which generates a graph whose nodes and edges are the hexagonal tiling of the plane. However, I do not want to search along…
JobS
  • 61
  • 3
0
votes
1 answer

Calculate the coordinate of the small center hexagon of a group of hexagon in a grid

I am stuck on a problem that seems easy to solve but I can't seem to pinpoint the right formula. I have a list of hexagon groups in a cube coordinate system. I know the cube coordinates of the groups but I need to calculate the "global" coordinate…
Shex
  • 111
  • 8
0
votes
0 answers

JavaFX: How to keep the distance between two polygons constant when one/both of them are resized (scaled)?

I have a honeycomb of hexagons in my GUI and their size keeps changing dynamically. I need to find a way to scale these shapes simultaneoulsy without overlapping each other. I have figured out that the distance between the edges must remain constant…
cuffty
  • 21
  • 5
0
votes
1 answer

Custom Hexagonal SKTileSet's Tile don't fit the SKTileMap's Hexes

So I've been trying trying to make an SKTileMap using the xcode editor. I have downloaded the assets from here. Put everything in my assets, and created an empty tileset that I filled with the tiles. Now when I go make the tile map on my sks file,…
0
votes
0 answers

Convert hexagon matrix (axial coordinates) to index for game in Java

For a project we need to make the Abalone game completely in java. Now, for the communication we agreed with other groups upon using indexes to send marble locations to the server. The thing is, I have this huge board with axial coordinates, looking…
Nomeon
  • 52
  • 5
0
votes
1 answer

Casting Civilization V based Hex Grid on Unity Terrain and Select Certain Areas of Grid

I am looking for approach for casting hex based grid on terrain which is for now pre-made but eventually it will be procedural for my exploration game where you can scan planet and elements will be highlighted/hex grid selected. What could be the…
Syed Munim Raza
  • 195
  • 2
  • 11
0
votes
1 answer

Find coordinates for overlapping hexagonal bins between hexbin objects

I have two spatial datasets with coordinates indicating observations of a species and want to estimate the area of overlap among these datasets. Since point coordinates cannot represent an area, one has to bin the coordinates using similar x…
Mikko
  • 7,530
  • 8
  • 55
  • 92
0
votes
1 answer

OpenGL: What is the fastest way to paint hex maps?

I want to paint a hex map with each hex a (potentially) different color. The shared border is black and the interior is a solid color. If I want to paint a 1920x1080 display, how can I do this the fastest way with OpenGL? See the image below for a…
No One in Particular
  • 2,846
  • 4
  • 27
  • 32
0
votes
2 answers

How to Change Color of Game Object When Clicked in Unity?

I'm trying to create the board game Hex. Player One at the bottom being yellow and Player Two at the top being blue. When Player One clicks a hex it should become yellow and when Player two clicks a hex it should become blue. I've created this…
Jon
  • 43
  • 1
  • 6
0
votes
1 answer

Kotlin - Hexagonal Grip Google Maps API v3 - Optimize Code

I need some help to optimize my code. Even though it works I have the strong feeling, this can be made in WAY less lines of code and much more efficient. But I can't figure it out myself. Actually it doesn't even work perfectly yet. I have a marker…
Alex
  • 81
  • 1
  • 7
0
votes
0 answers

Generating a grid of hex tiles, spiraling out clockwise from a center point

I need to generate and plot a grid of hexagons from an arbitrarily sized list of values. The grid should start from some center 0,0 and grow outwards clockwise, each ring starting from top/top-center of the previous one. To explain better, an…
Natsukane
  • 681
  • 1
  • 8
  • 19