diff --git a/frontend/src/lib/components/ChessGameOverlay.svelte b/frontend/src/lib/components/ChessGameOverlay.svelte
index 685c2ef..67fa89c 100644
--- a/frontend/src/lib/components/ChessGameOverlay.svelte
+++ b/frontend/src/lib/components/ChessGameOverlay.svelte
@@ -255,7 +255,7 @@
const piece = game.get(square);
row.push({
square,
- piece: piece ? getPieceSymbol(piece) : null,
+ piece: piece ? getPieceImage(piece) : null,
color: piece?.color || null,
isLight: (files.indexOf(file) + parseInt(rank)) % 2 === 1
});
@@ -266,12 +266,11 @@
boardSquares = board2d;
}
- function getPieceSymbol(piece) {
- const symbols = {
- 'wk': '\u2654', 'wq': '\u2655', 'wr': '\u2656', 'wb': '\u2657', 'wn': '\u2658', 'wp': '\u2659',
- 'bk': '\u265A', 'bq': '\u265B', 'br': '\u265C', 'bb': '\u265D', 'bn': '\u265E', 'bp': '\u265F'
- };
- return symbols[piece.color + piece.type] || '';
+ function getPieceImage(piece) {
+ // Cburnett piece set: wK, wQ, wR, wB, wN, wP, bK, bQ, bR, bB, bN, bP
+ const color = piece.color; // 'w' or 'b'
+ const type = piece.type.toUpperCase(); // k->K, q->Q, etc.
+ return `/pieces/cburnett/${color}${type}.svg`;
}
function handleSquareClick(square) {
@@ -580,9 +579,13 @@
on:click={() => handleSquareClick(cell.square)}
>
{#if cell.piece}
-
- {cell.piece}
-
+
{/if}
{/each}
@@ -830,19 +833,8 @@
}
.piece {
- font-size: 2rem;
- line-height: 1;
user-select: none;
- }
-
- .white-piece {
- color: #fff;
- text-shadow: 0 0 2px #000;
- }
-
- .black-piece {
- color: #000;
- text-shadow: 0 0 2px #fff;
+ pointer-events: none;
}
.overlay-footer {
@@ -952,10 +944,6 @@
height: 36px;
}
- .piece {
- font-size: 1.7rem;
- }
-
.resize-handle {
display: none;
}
diff --git a/frontend/static/pieces/cburnett/bB.svg b/frontend/static/pieces/cburnett/bB.svg
new file mode 100644
index 0000000..fd71645
--- /dev/null
+++ b/frontend/static/pieces/cburnett/bB.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/static/pieces/cburnett/bK.svg b/frontend/static/pieces/cburnett/bK.svg
new file mode 100644
index 0000000..8114d17
--- /dev/null
+++ b/frontend/static/pieces/cburnett/bK.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/static/pieces/cburnett/bN.svg b/frontend/static/pieces/cburnett/bN.svg
new file mode 100644
index 0000000..2c2c534
--- /dev/null
+++ b/frontend/static/pieces/cburnett/bN.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/static/pieces/cburnett/bP.svg b/frontend/static/pieces/cburnett/bP.svg
new file mode 100644
index 0000000..23b2bc2
--- /dev/null
+++ b/frontend/static/pieces/cburnett/bP.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/static/pieces/cburnett/bQ.svg b/frontend/static/pieces/cburnett/bQ.svg
new file mode 100644
index 0000000..005c223
--- /dev/null
+++ b/frontend/static/pieces/cburnett/bQ.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/static/pieces/cburnett/bR.svg b/frontend/static/pieces/cburnett/bR.svg
new file mode 100644
index 0000000..c9339b0
--- /dev/null
+++ b/frontend/static/pieces/cburnett/bR.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/static/pieces/cburnett/wB.svg b/frontend/static/pieces/cburnett/wB.svg
new file mode 100644
index 0000000..3d7deb0
--- /dev/null
+++ b/frontend/static/pieces/cburnett/wB.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/static/pieces/cburnett/wK.svg b/frontend/static/pieces/cburnett/wK.svg
new file mode 100644
index 0000000..08189e8
--- /dev/null
+++ b/frontend/static/pieces/cburnett/wK.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/static/pieces/cburnett/wN.svg b/frontend/static/pieces/cburnett/wN.svg
new file mode 100644
index 0000000..005c337
--- /dev/null
+++ b/frontend/static/pieces/cburnett/wN.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/static/pieces/cburnett/wP.svg b/frontend/static/pieces/cburnett/wP.svg
new file mode 100644
index 0000000..9949318
--- /dev/null
+++ b/frontend/static/pieces/cburnett/wP.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/static/pieces/cburnett/wQ.svg b/frontend/static/pieces/cburnett/wQ.svg
new file mode 100644
index 0000000..d5c5ee4
--- /dev/null
+++ b/frontend/static/pieces/cburnett/wQ.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/static/pieces/cburnett/wR.svg b/frontend/static/pieces/cburnett/wR.svg
new file mode 100644
index 0000000..c149104
--- /dev/null
+++ b/frontend/static/pieces/cburnett/wR.svg
@@ -0,0 +1 @@
+
\ No newline at end of file