Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freiwillige Zusatzaufgabe #17

Closed
2 tasks
alphakilo11 opened this issue Dec 5, 2021 · 2 comments
Closed
2 tasks

Freiwillige Zusatzaufgabe #17

alphakilo11 opened this issue Dec 5, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@alphakilo11
Copy link
Collaborator

alphakilo11 commented Dec 5, 2021

  • Save stats to file
  • Read stats from file upon startup

Es soll mo ̈glich sein, die Statistiken in einer Datei zu speichern, sodass sie auch beim Beenden des Programms nicht verloren gehen. Beim Starten des Programms sollen die vorhandenen Informationen aus der Datei eingelesen werden und bei der Durchfu ̈hrung neuer Spiele die neuen Werte erga ̈nzt werden.

@alphakilo11 alphakilo11 added the enhancement New feature or request label Dec 5, 2021
@alphakilo11
Copy link
Collaborator Author

Suggested File structure:
{"playername", total_singleplayer_games, total_multiplayer_games, singleplayer_games_won, multiplayer_games_won, multiplayer_games_draw, total_guesses, total_black_pegs, total_white_pegs}
Example:
{"Alex", 25, 10, 15, 3, 1, 350, 100, 150}; {"Ohan", 13, 10, 10, 6, 1, 222, 98, 142}

@oSumAtrIX
Copy link
Owner

Instead of serializing as a human-readable file, writing binary data would be more efficient and sufficient.
A specification will be needed for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants