diff --git a/schlangen_und_leitern/js/makeBoard.js b/schlangen_und_leitern/js/makeBoard.js new file mode 100644 index 0000000..a1af2de --- /dev/null +++ b/schlangen_und_leitern/js/makeBoard.js @@ -0,0 +1,33 @@ + +function drawBoard(){ + let tbl = document.getElementById("board"); + + for (let y = 0; y < 10; y++){ + let myRow = document.createElement("tr"); + myRow.id = "row" + y; + + + tbl.appendChild(myRow); + let row = document.getElementById("row" + y); + + + for(let x = 0; x < 10; x++){ + + let cell = document.createElement("td"); + row.appendChild(cell); + } + } + } + + + + + + + + + + + + + \ No newline at end of file