From 33d6e55122f1613ad2ce7de9f808073d0f6adc4b Mon Sep 17 00:00:00 2001 From: Richard Halsall <–richard-glyn.halsall@informatik.hs-fulda.e> Date: Mon, 30 Jan 2023 13:00:56 +0100 Subject: [PATCH] =?UTF-8?q?Hinzuf=C3=BCgen=20der=20Funktion=20maingame?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schlangen_und_leitern/js/Bridge.js | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 schlangen_und_leitern/js/Bridge.js diff --git a/schlangen_und_leitern/js/Bridge.js b/schlangen_und_leitern/js/Bridge.js new file mode 100644 index 0000000..82401ea --- /dev/null +++ b/schlangen_und_leitern/js/Bridge.js @@ -0,0 +1,34 @@ +function mainGame(playerCount){ + //hide player select + + +//nack Spielerzahl fragen + //hide player selection buttons + // reveal dice + // build/show board + // make x player structures + + +//Haupt game loop + + //select player + //player rolls dice + //player position gets drawn to board + //next player + +// victory condition + //if boardArr + roll => 99 player n wins +//new game + + + + + + + + + + + +} +