summaryrefslogtreecommitdiff
path: root/bitboards.html
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-02-25 23:22:10 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-02-25 23:22:10 +0530
commitb2f0457deaf8fd7c336e5370212df9202d6f3eeb (patch)
tree42105b64d453c3aa59ec8890df1c0160513bf0ee /bitboards.html
parent4c051c50de1c1284c438de87881f52a6180fdf8e (diff)
knights DONE?
Diffstat (limited to 'bitboards.html')
-rw-r--r--bitboards.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitboards.html b/bitboards.html
index ca4675a..8323dfe 100644
--- a/bitboards.html
+++ b/bitboards.html
@@ -79,7 +79,7 @@
if (i % 8 == 0) {
const label = document.createElement("div");
label.classList.add("label");
- label.textContent = ["h", "g", "f", "e", "d", "c", "b", "a"][i / 8];
+ label.textContent = 8 - Math.round(i / 8);
board.appendChild(label);
}
const square = document.createElement("div");
@@ -100,10 +100,10 @@
const label = document.createElement("div");
label.classList.add("horizontal_label");
board.appendChild(label);
- for (let i = 1; i < 9; i++) {
+ for (let i = 0; i < 8; i++) {
const label = document.createElement("div");
label.classList.add("horizontal_label");
- label.textContent = i;
+ label.textContent = ["a", "b", "c", "d", "e", "f", "g", "h"][i];
board.appendChild(label);
}
</script>