cuadue/2048_game — pull request #7 by 2ion (2014-05-16 11:25:31+00:00)
Title: Highscore file

Saves and loads the highscore to/from the file $HOME/.2048score or as a fallback to/from $PWD/.2048score. The format is a plain text file containing a single number.

The path to $HOME is obtained via the Unix getpwuid() function. This change should therefore not impact the portability across Unix-like systems.

(Sorry for the frequent retabbing.)