sionleroux / cr1ckt

There is more than 1 bug in this game and some of them are intentional! 🦗 Entry for the 2021 Game Off jam.
https://sinisterstuf.itch.io/cr1ckt
MIT License
4 stars 1 forks source link

The black squares can be generated in the same place #15

Open sionleroux opened 2 years ago

sionleroux commented 2 years ago

Not a big deal but because it's random it's completely possible for it to generate a black tile where there already is one. To work around this, check if the new one is already on the list and if so then keep trying. This only becomes an apparent issue when there are already many black squares.