It looked like I was getting minus points at times near the end. Maybe there's an integer overflow? If you're using signed 16-bit integers, then after 32,767, it loops around to -32,768. Relevant xkcd: https://xkcd.com/571/
It looked like I was getting minus points at times near the end. Maybe there's an integer overflow? If you're using signed 16-bit integers, then after 32,767, it loops around to -32,768. Relevant xkcd: https://xkcd.com/571/