courselab / coral

Coral is a snake game written as programming exercise (class of 2024)
GNU General Public License v3.0
9 stars 14 forks source link

bug: game crash caused by byte to int conversion #99

Closed roselino-quatro closed 1 week ago

roselino-quatro commented 1 week ago

On versions of python older than 3.11 after playing and saving a high score the game will crash and keep on crashing at start, this is because the default value to functions like int.from_bytes was only added after 3.11. We should add a default value for compatibility purposes