Skip to content

Instantly share code, notes, and snippets.

@creyn

creyn/index.js Secret

Created April 22, 2018 09:34
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/daf86ce9bc71d0e95dab44b08c19ab09 to your computer and use it in GitHub Desktop.
Save creyn/daf86ce9bc71d0e95dab44b08c19ab09 to your computer and use it in GitHub Desktop.
Droga Programisty : Szybkie Palce : funkcje do obsługi pojedynku
// Funkcja ktora oznajmia Graczom ze wlasnie rozpoczal sie ich pojedynek
function Pojedynek() {
czyPojedynekTrwa = true;
Zanotuj('Pojedynek!');
}
// Funkcja obslugujaca logike naciskania klawisza przez Graczy
function NacisnietoPrzycisk(przycisk) {
...
}
function KoniecRundy() {
czyPojedynekTrwa = false;
// ...
// Tutaj bedziemy sprawdzac czy ktorys Gracz wygral
// Na razie rozpoczynamy kolejna runde :)
// ...
RozpocznijRunde();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment