84
K-ASS
6y

I built a spherical voronoi minesweep

Comments
  • 4
    Nice!

    Will you publish it somewhere?
  • 2
    publish it! wanna try it 😁
  • 7
    @just8littleBit @user261 https://github.com/txstc55/...

    You will need c++ and cmake to build the project, have fun
  • 1
    @K-ASS cool, thanks man!
  • 0
    Looks really cool. Is this a known version of Minesweeper, or was it your idea?
  • 0
    How do I play with all those colors? Which cell s are unclicked?
  • 1
    @Marl3x there are some versions of 2d voronoi minesweeper which I also implemented, but the spherical one is new
  • 0
    @billgates the unclicked cells always have a brighter colour while the clicked ones have a darker colour
  • 0
    Looks pretty neat. I'll have a look into it after work 👍
  • 0
    Very nice idea. I assume that it was fun to work out the mathematics and algorithms. 👍
  • 0
    It looks like the areas are polygon based. But how did you do voronoi polygons? Or is it a spherical texture?
  • 2
    @Lensflare so first of all I use a Python library to calculate the spherical voeonoi cells, which are defined by the boundary points of the cell. Then, connect each edge with the center of the polygon, which now give you a set of triangles that make up the cell. For each triangle, recursively construct four triangles by connecting the midpoint of each edge until the triangle is small enough.
    So essentially what you see is just a massive collection of triangles instead of a sphere. It's also explained in readme.
  • 0
    Cool idea man I really like it.
    Can I mplement this as a personel project some day ?
  • 1
    @nedjima sure go ahead
  • 1
    @nedjima if you have any question regarding the detail of implementation just open an issue
  • 0
    Thank you. I'm busy with other stuff and flagged it as to do project :p
Add Comment