lundi 15 février 2021

10x10 button array with a Boolean of 10% true values

I'm making minesweeper for a school project and need a way to randomly set mines for a 10x10 grid with a maximum of 10 mines. I'd also like this value to be readable as I need the neighboring buttons to be able to read and determine how many mines are around them.




Aucun commentaire:

Enregistrer un commentaire