Hey everyone!
I wanted to share a little side project Iโve been working on: a Planet Zoo Animal Picker. Itโs a simple tool designed to help you choose a random animal for your Planet Zoo game.
I know there are already tools out there, and mine isnโt necessarily better, but itโs something I created and Iโm proud of it. Itโs just a fun little project I wanted to share with the community.
Itโs written in Vue/Quasar, src
Feel free to check it out, and for anyone that plays the game: Happy zookeeping! ๐ฆ๐
You are correct. Its quiet a find but I can reproduce this. I suspect the issue lies in the piece of code that tries to make sure you donโt get the same animal twice when you select a random animal. You can also follow the steps until there is only the Newt and then press the dice below itโs name. Now there are no animals.
The random selector subtracts one from the total options and adds that one back if the new number is greater or equal to the precious number. So in case of only a single option it gets 0 at random, which equals the previous index and does +1, which doesnโt exist.
There should be a failsafe that prevents this logic if there is only one animal in total ๐คทโโ