Minesweeper Layout Generator

This project is a personal (v)exercise on how to use pcfind() and working with arrays in VEX. An exact amount of mines is defined by the user which are randomly distributed among all points, which are aligned in a grid. Each point then looks around itself in a very specific radius and can only find a maximum of nine points (including itself). After removing itself from the array using the pop() function, a loop checks every index of the found neighbors for mines and increments an attribute whenever it does so.
For visualization, colored numbers and black spheres are then copied onto the points.

Thanks for watching :)

Scene file:
drive.google.com/file/d/1coQTHnaMlVgjZfPPifjgcGQxMYN--NWW/view?usp=sharing

COMMENTS

  • fit 1 month ago  | 

    This is so cool, I love Minesweeper.

Please log in to leave a comment.