-
-
Save creyn/2341327ba1224643b274ab4a60142825 to your computer and use it in GitHub Desktop.
Droga Programisty : Szybkie Palce : funkcja RozpocznijRunde
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 ktora rozpoczyna kolejna runde | |
// Ustawia stoper na czasRundy | |
function RozpocznijRunde() { | |
czyPojedynekTrwa = false; | |
czasRundy = WylosujCzasRundy(minimalnyCzasRundy); | |
Zanotuj('------------------------'); | |
Zanotuj('Rozpoczęcie rundy. Czas rundy wynosi: ' + czasRundy + ' sekund.'); | |
// poniewaz czasRundy jest w sekundach a funkcja setTimeout przyjmuje milisekundy | |
window.setTimeout(Pojedynek, czasRundy * 1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment