From ddd0632e6898ef252361b6691c1e8a7e0d7f4b8e Mon Sep 17 00:00:00 2001 From: AbhilashMadi Date: Sun, 19 Nov 2023 21:03:38 +0530 Subject: [PATCH] added reference for chess symbols --- react/src/machine-coding/chess-board/ChessBoard.tsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/react/src/machine-coding/chess-board/ChessBoard.tsx b/react/src/machine-coding/chess-board/ChessBoard.tsx index b20141900..ac002c507 100644 --- a/react/src/machine-coding/chess-board/ChessBoard.tsx +++ b/react/src/machine-coding/chess-board/ChessBoard.tsx @@ -4,6 +4,7 @@ import { colorTile } from './utils'; const ChessBoard: FC = () => { //instead of using an object here we can use Map too + //reference: https://qwerty.dev/chess-symbols-to-copy-and-paste /** * R - Rook * N - Knight @@ -16,7 +17,7 @@ const ChessBoard: FC = () => { R: '♜', N: '♞', B: '♝', - Q: '♛', + Q: '♛', K: '♚', P: '♟', r: '♖', @@ -29,14 +30,7 @@ const ChessBoard: FC = () => { }; const boardRows: string = - 'RNBQKBNR' + - 'PPPPPPPP' + - ' ' + - ' ' + - ' ' + - ' ' + - 'pppppppp' + - 'rnbqkbnr'; + 'RNBQKBNR' + 'PPPPPPPP' + ' ' + ' ' + ' ' + ' ' + 'pppppppp' + 'rnbqkbnr'; return (