1
0
mirror of https://github.com/osmarks/website synced 2025-08-29 16:57:56 +00:00

4D tic-tac-toe (real)

This commit is contained in:
2024-01-30 16:46:38 +00:00
parent f43a8aa951
commit b0c118bb65
40 changed files with 272 additions and 5 deletions

View File

@@ -360,6 +360,8 @@ slug: tictactoe
function render() {
var html = ""
for (var l = 0; l < size; l++) {
if (l == 2) html += `</div>`
if (l == 0 || l == 2) html += `<div class="ctr">`
html += '<div class="layer">'
for (var r = 0; r < size; r++) {
html += '<div class="row">'
@@ -373,6 +375,7 @@ slug: tictactoe
}
html += '</div>'
}
if (l == 3) html += `</div>`
html += '</div>'
}
screen.innerHTML = html