Brick Game v1.0
Implementation of the game Tetris in the C programming language with a terminal user interface.
Loading...
Searching...
No Matches
saving.h File Reference

Implements top score saving functionality. More...

Go to the source code of this file.

Functions

int load_top_score (void)
 Load top score from a file on disk.
 
void save_top_score (int top_score)
 Save the top score to a file on disk.
 

Detailed Description

Implements top score saving functionality.

Function Documentation

◆ load_top_score()

int load_top_score ( void  )

Load top score from a file on disk.

Returns 0 if the top score file is missing, corrupted or cannot be read.