etcadinfinitum / GameLab

Android application with a few simple games
0 stars 1 forks source link

Scores are not being persisted #17

Closed etcadinfinitum closed 5 years ago

etcadinfinitum commented 5 years ago

Eligible new scores are not being added to the serialized lists as expected. Will debug and submit a fix.

etcadinfinitum commented 5 years ago

This appears to only be the case for Minesweeper on the Nexus VM currently used for testing. After adding a Snake score, the score is persisted and displayed, with expected output as follows:

I/System.out: score was added to SNEK list; new score is 23; winner testisnek
I/System.out: score list data is: [[com.example.lizzy.gamelab.Score@3d36905, com.example.lizzy.gamelab.Score@40e1468, com.example.lizzy.gamelab.Score@2bcf567, com.example.lizzy.gamelab.Score@e204db2], [], [], [com.example.lizzy.gamelab.Score@4292a5f]]
etcadinfinitum commented 5 years ago

This is a missing edge case for how scores get added. Fix is incoming.