Bestenliste und Scores gespeichert und beim Ende eines Spiel Rang anzeige

This commit is contained in:
2025-04-28 20:56:06 +02:00
parent 76392172b5
commit 80ae256638
12 changed files with 155 additions and 32 deletions

View File

@@ -0,0 +1,12 @@
class Score{
/** @param {UserManager} usermanager */
constructor(scoreJson){
this.id = scoreJson.id;
this.user1ID = scoreJson.user1;
this.user2ID = scoreJson.user2;
this.score = scoreJson.score;
this.time = new Date(scoreJson.time);
}
}
module.exports = Score;