|
@ -6,6 +6,7 @@ function init(playerCount){ |
|
|
document.getElementById("2Player").style.display = "none"; |
|
|
document.getElementById("2Player").style.display = "none"; |
|
|
document.getElementById("3Player").style.display = "none"; |
|
|
document.getElementById("3Player").style.display = "none"; |
|
|
document.getElementById("4Player").style.display = "none"; |
|
|
document.getElementById("4Player").style.display = "none"; |
|
|
|
|
|
document.getElementById("isUp").style.display = "block"; |
|
|
|
|
|
|
|
|
// Wufelbereich zeigen.
|
|
|
// Wufelbereich zeigen.
|
|
|
document.getElementById("würfelBereich").style.display = "grid"; |
|
|
document.getElementById("würfelBereich").style.display = "grid"; |
|
@ -35,6 +36,7 @@ function init(playerCount){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function gameloop (boardArr, playerArray, playerCount){ |
|
|
function gameloop (boardArr, playerArray, playerCount){ |
|
@ -76,5 +78,7 @@ function gameloop (boardArr, playerArray, playerCount){ |
|
|
else { |
|
|
else { |
|
|
turnCount ++ |
|
|
turnCount ++ |
|
|
} |
|
|
} |
|
|
|
|
|
//show who is up
|
|
|
|
|
|
turnIndicater(turnCount); |
|
|
|
|
|
|
|
|
} |
|
|
} |