https://bugs.kde.org/show_bug.cgi?id=292032

Jaak Ristioja <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REPORTED
         Resolution|NOT A BUG                   |---

--- Comment #4 from Jaak Ristioja <[email protected]> ---
I agree, but if you continue clicking, and then it eventually wraps from
negative to positive again, which might yield in positive scores.

So if the program survives the undefined behavior of the integer overflow, it
is followed by ever more undefined behavior in MainWindow::gameOver(), e.g.
-NaN not being in the range of representative values values for int, and a
division by zero. :)

Why not just add guard to keep the overflow from happening and call it "game
over: too many moves"?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to