Refactoring & toString method added

This commit is contained in:
Felix Kirchner
2025-05-01 13:06:49 +02:00
parent 6ad69671db
commit cd6931093e
5 changed files with 24 additions and 18 deletions

View File

@@ -19,6 +19,12 @@ class Round {
required this.scoreUpdates,
this.kamikazePlayerIndex});
@override
toString() {
return 'Round $roundNum: scores: $scores, scoreUpdates: $scoreUpdates, '
'kamikazePlayerIndex: $kamikazePlayerIndex';
}
/// Converts the Round object to a JSON map.
Map<String, dynamic> toJson() => {
'roundNum': roundNum,