diff --git a/schlangen_und_leitern/js/Bridge.js b/schlangen_und_leitern/js/Bridge.js index 2117b7f..13c4e79 100644 --- a/schlangen_und_leitern/js/Bridge.js +++ b/schlangen_und_leitern/js/Bridge.js @@ -2,14 +2,8 @@ let turnCount = 1; function init(playerCount){ - //playerselect versctecken - document.getElementById("2Player").style.display = "none"; - document.getElementById("3Player").style.display = "none"; - document.getElementById("4Player").style.display = "none"; - document.getElementById("isUp").style.display = "block"; - - // Wufelbereich zeigen. - document.getElementById("würfelBereich").style.display = "grid"; + //hide menue + hideStartMenu() // Spielbrett Aufbauen boardArr = buildBoard(); diff --git a/schlangen_und_leitern/js/makeBoard.js b/schlangen_und_leitern/js/makeBoard.js index 26fda34..29637c8 100644 --- a/schlangen_und_leitern/js/makeBoard.js +++ b/schlangen_und_leitern/js/makeBoard.js @@ -286,6 +286,17 @@ function continueGame (){ } +function hideStartMenu(){ + //playerselect versctecken + document.getElementById("2Player").style.display = "none"; + document.getElementById("3Player").style.display = "none"; + document.getElementById("4Player").style.display = "none"; + document.getElementById("isUp").style.display = "block"; + + // Wufelbereich zeigen. + document.getElementById("würfelBereich").style.display = "grid"; +} +