jonkogan / nullpomino

Automatically exported from code.google.com/p/nullpomino
0 stars 0 forks source link

Score per minute becomes negative inexplicably #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Have an AI play practice mode. Goes faster if you set the level type to "10 
lines".
2. Keep an eye on the "score/min" value.

What is the expected output? What do you see instead?
When score/min gets within the neighborhood of 400,000--it may happen earlier 
or later than 400k, but I don't know what the determining factor is--it 
suddenly gains a negative sign, and works its way back up to zero. Once it's 
back out of negative numbers, if it gets high enough, it will again go 
negative, at an earlier point than last time; the score/min required to trigger 
the glitch decreases as the glitch repeatedly happens.

What version of the product are you using? On what operating system?
Latest SVN, SDL version, on Windows XP Home.

Please provide any additional information below.

Original issue reported on code.google.com by melthomw@att.net on 25 Aug 2010 at 12:23

GoogleCodeExporter commented 8 years ago
I believe I've found the glitch.

If I'm not mistaken, the determining factor was the score hitting 596,524 
(2^31/3600 rounded up to the nearest integer); it'll go negative at odd 
multiples of that number and hit zero at even multiples.

Original comment by Poochy.EXE on 26 Aug 2010 at 2:27

GoogleCodeExporter commented 8 years ago

Original comment by Poochy.EXE on 26 Aug 2010 at 2:28