Found an annoying problem in my game yesterday. Even when I provide new random seeds on every level, anyway there is still some chance of the same number being generated twice in a row, or two of every three times. First i thought I could solve it with more questions, maybe 40 were too few. But hey, it is random, it is perfectly valid to have the same value twice in a row with 40, 60 or 100 questions (just less probable the large the range is).
So I need certain rules, to prevent the same question being asked several times in short period of time. So, I guess I will have to tweak the result of the random generator, checking if it is a repeated value. Not complicated to implement.
So, the demo is almost here. The most heavy task is creating the questions, properly translating them and double checking that the right answer is, actually, the right answer. At least, according to the Wikipedia.
So I need certain rules, to prevent the same question being asked several times in short period of time. So, I guess I will have to tweak the result of the random generator, checking if it is a repeated value. Not complicated to implement.
So, the demo is almost here. The most heavy task is creating the questions, properly translating them and double checking that the right answer is, actually, the right answer. At least, according to the Wikipedia.
Comments
Post a Comment