-
-
Save creyn/7f282727ee9e8e8d041cc5aaf0b159eb to your computer and use it in GitHub Desktop.
Droga Programisty : Szybkie Palce : funkcja RozpocznijGre
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Funkcja sluzy do rozpoczynania nowej gry | |
function RozpocznijGre() { | |
// ustawienie poczatkowych wartosci zmiennych | |
punktyGracz1 = 0; | |
punktyGracz2 = 0; | |
licznikNacisniecGracz1 = 0; | |
licznikNacisniecGracz2 = 0; | |
liczbaRund = 3; | |
limitNacisniec = liczbaRund; | |
minimalnyCzasRundy = 5; | |
czyPojedynekTrwa = false; | |
czasRundy = WylosujCzasRundy(minimalnyCzasRundy); | |
Zanotuj('Rozpoczęcie gry. Czas rundy wynosi: ' + czasRundy + ' sekund.'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment