From 46422f48119f93845322e24c895bdf1480f18e8e Mon Sep 17 00:00:00 2001 From: Claudio Schaad Date: Wed, 25 Feb 2026 22:12:24 +0100 Subject: [PATCH] feat: add statistics button to start screen Co-Authored-By: Claude Sonnet 4.6 --- MemoryGame/Pages/Home.razor | 55 +++++++++++++++++++------------------ 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/MemoryGame/Pages/Home.razor b/MemoryGame/Pages/Home.razor index 04a17fb..cc7755a 100644 --- a/MemoryGame/Pages/Home.razor +++ b/MemoryGame/Pages/Home.razor @@ -13,33 +13,7 @@

Lädt...

} - else if (_currentSession == null) - { -
-

Memory-Spiel

-

Übe das Zuordnen von Bildern zu Wörtern

- -
- } - else if (_currentSession.IsComplete && !_showStatistics) - { -
-

Spiel beendet!

-
-
- Richtig: - @_currentSession.CorrectAnswers -
-
- Falsch: - @_currentSession.IncorrectAnswers -
-
- - -
- } - else if (_currentSession.IsComplete && _showStatistics) + else if (_showStatistics) { var words = GameService.GetWords() .OrderBy(w => w.CorrectCount + w.IncorrectCount == 0 ? 1 : 0) @@ -100,6 +74,33 @@ } + else if (_currentSession == null) + { +
+

Memory-Spiel

+

Übe das Zuordnen von Bildern zu Wörtern

+ + +
+ } + else if (_currentSession.IsComplete) + { +
+

Spiel beendet!

+
+
+ Richtig: + @_currentSession.CorrectAnswers +
+
+ Falsch: + @_currentSession.IncorrectAnswers +
+
+ + +
+ } else { var round = _currentSession.CurrentRound;