Compare commits

...

2 Commits

Author SHA1 Message Date
dustineversmann 293043adea Merge remote-tracking branch 'origin/main' 2024-03-26 10:35:53 +01:00
dustineversmann 4dbc518e07 Merge remote-tracking branch 'origin/main' 2024-03-26 10:35:45 +01:00
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ public class Kartenstapel {
Collections.shuffle(stapel);
}
// Hier wird die geforderte RuntimeException geworfen.
public Karte zieheKarte() {
if (stapel.isEmpty()) {
throw new RuntimeException("Alle Karten wurden bereits gezogen.");