|
@ -10,8 +10,17 @@ function mainGame(playerCount){ |
|
|
// Wufelbereich zeigen.
|
|
|
// Wufelbereich zeigen.
|
|
|
document.getElementById("würfelBereich").style.display = "grid"; |
|
|
document.getElementById("würfelBereich").style.display = "grid"; |
|
|
|
|
|
|
|
|
|
|
|
// build/show board + get board array
|
|
|
|
|
|
boarArr = buildBoard(); |
|
|
|
|
|
drawBoard(boarArr); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let playerArray = buildPlayerArray(playerCount); |
|
|
|
|
|
|
|
|
|
|
|
let rollresult = rollDice(); |
|
|
|
|
|
|
|
|
|
|
|
console.log("roll result =" + rollresult); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|