Try now (mobile page) -
artony4444.github.io/static-chess
Contact me -
artony4444@gmail.com
- legal moves generation
- castle
- enpassant
- check
- checkmate
- stalemate
- insufficient material
- 50 moves draw
- FEN import
- drag drop
- touch move
- piece highlight
- board construction
- moves history
- pgn import
- three fold repetition
- board eval
- bot
Without Download -
<script src="https://artony4444.github.io/static-chess/static-chess.js"></script>
With Download -
<script src="static-chess.js"></script>
Make sure you locate static-chess.js
and update src accordingly for example ../downloads/chess/static-chess.js
js
|
|-- chess
|
| piece : stores name, color, moves
| square : stores piece
| board : stores 8x8 squares & manages moves
| logic : filters illegal moves by managing moves and states.
|
|
|-- ui
|
| drag-drop : css effects, request & makes move
| ui : drag-drop, board generation & management (html injection using js)
|
|-- tools
|
| strings : stores strings
| converter : converts different data types
|