Skip to content

Instantly share code, notes, and snippets.

@creyn

creyn/index.js Secret

Created April 22, 2018 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save creyn/2341327ba1224643b274ab4a60142825 to your computer and use it in GitHub Desktop.
Save creyn/2341327ba1224643b274ab4a60142825 to your computer and use it in GitHub Desktop.
Droga Programisty : Szybkie Palce : funkcja RozpocznijRunde
// 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