MCPcopy Create free account
hub / github.com/code100x/chess / ChessBoard.tsx

File ChessBoard.tsx

apps/frontend/src/components/ChessBoard.tsx:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { Chess, Color, Move, PieceSymbol, Square } from 'chess.js';
2import { MouseEvent, memo, useEffect, useState } from 'react';
3import { MOVE } from '../screens/Game';
4import LetterNotation from './chess-board/LetterNotation';

Callers

nothing calls this directly

Calls 4

clearCanvasFunction · 0.85
handleMouseDownFunction · 0.85
handleMouseUpFunction · 0.85
isPromotingFunction · 0.70

Tested by

no test coverage detected