Skip to content
This repository was archived by the owner on Dec 30, 2024. It is now read-only.

Commit fa9414b

Browse files
committed
pientä korjausta showResultiin
1 parent c77ff0a commit fa9414b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Kooditoteutus/SpedenSpelit/SpedenSpelit.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ void checkGame(byte nbrOfButtonPush) {
8686
// Tarkistetaan, onko painettu nappi oikea (sama kuin sattumanvarainen LED)
8787
if (nbrOfButtonPush == randomLed) {
8888
Serial.println("Oikea nappi painettu! Piste!");
89-
showResult(currentScore); // Esimerkiksi näytetään tulos 10
89+
showResult(10); // Esimerkiksi näytetään tulos 10
9090
} else {
9191
Serial.println("Väärä nappi! Peli ohi.");
92-
showResult(currentScore); // Näytetään nolla, peli ohi
92+
showResult(0); // Näytetään nolla, peli ohi
9393
initializeGame(); // Aloitetaan peli uudelleen
9494
}
9595
}

0 commit comments

Comments
 (0)