Update the game logic to take note of high scores

This commit is contained in:
hkz 2025-07-24 18:05:51 +02:00
commit f18b23b08a
4 changed files with 32 additions and 18 deletions

View file

@ -53,8 +53,8 @@ uint8_t add_random_tile(void) {
return 0; // Return 0 if we were not able to place the tile, else we return (offset + 1) to indicate where the tile was placed
}
uint8_t step_game(step_direction dir) {
uint8_t done = 0;
int8_t step_game(step_direction dir) {
int8_t done = 0;
uint8_t start_offset;
int8_t column_step;
int8_t row_step;