add player name prompt and adding to the leaderboard

This commit is contained in:
2025-03-23 23:29:04 +03:00
parent 82ed5fb784
commit be6c25c35d
3 changed files with 8 additions and 0 deletions

View File

@@ -14,6 +14,7 @@
}
public static List<(string, int)> ReadScores() {
if (!File.Exists("leaders.txt")) return new List<(string, int)>();
using StreamReader rd = new StreamReader("leaders.txt");
List<(string, int)> scores = new List<(string, int)>();
string? line = null;