From ab40fa82ce7789c5dc76011cc85d95a4afac49cd Mon Sep 17 00:00:00 2001 From: creeperkafasi <49831545+creeperkafasi@users.noreply.github.com> Date: Wed, 12 Jul 2023 16:20:59 +0300 Subject: [PATCH] Add more info about the project Disable debug draws --- game.js | 24 ++++++++++++------------ index.html | 16 ++++++++++++---- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/game.js b/game.js index ead0876..d28f3a7 100644 --- a/game.js +++ b/game.js @@ -168,7 +168,7 @@ setInterval(() => { [[x + 1, y - 1], [x - 1, y - 1]] ).filter((c) => !checkAvailable(...c) && !checkSameColor(c[0], c[1], x, y)) ); - + moves.forEach((move) => { ctx.fillStyle = "#55ff5544" ctx.beginPath(); @@ -250,17 +250,17 @@ setInterval(() => { } // Draw debug info - ctx.beginPath(); - ctx.strokeStyle = "blue"; - ctx.strokeText("" - // + `${Table[`${x},${y}`] ?? ""}` - + `(${x},${y})` - , - start[0] + x * R3 * r - r / 2, - start[1] + y * r + r / 2, - ); - ctx.closePath(); - ctx.stroke(); + // ctx.beginPath(); + // ctx.strokeStyle = "blue"; + // ctx.strokeText("" + // // + `${Table[`${x},${y}`] ?? ""}` + // + `(${x},${y})` + // , + // start[0] + x * R3 * r - r / 2, + // start[1] + y * r + r / 2, + // ); + // ctx.closePath(); + // ctx.stroke(); } } }, 1000 / 60); diff --git a/index.html b/index.html index 40c4817..e68d2d9 100644 --- a/index.html +++ b/index.html @@ -9,15 +9,23 @@ -

Hexagonal Chess

+

Hexagonal Chess Board

-
-
- Built by: Deniz Tunç +

---Currently missing features & excuses---

+ - Win/Lose system: Check yourself
+ - Check and mate detection: Check yourself
+ - Colors: Too lazy
+ - "En Passant": Idk how to
+ - Turn system: Check yourself
+ - AI: Idk how to
+

---Credits---

+ Built by: Deniz Tunç with just Javascript
Inspired by: CGP Grey
+ Reference for rules & board: Wikipedia +
Image Credits: Cburnett, CC BY-SA 3.0, via Wikimedia Commons