This is interactive chess application for two-players. It is responsive and implements all features of real chess.
Click here to play!
- Interactive chessboard with movement checking and board highlighting.
- Two players (no single-player mode)
- All chess moves available including:
- capturing enemy pieces
- castling
- en passant
- Check and checkmate detection with UI warnings.
- Interactive promotion panel.
- Side control panel.
- Timer with different time settings and start / pause button.
- Side switching and game reset.
- Automatic blocking after finished game.
Game was created using only:
- vanilla JS
- HTML
- CSS
Sass preprocessor and BEM naming convention was used for CSS. Object oriented approach was used for JS with separate classes for chess logic, timer and UI. Chess class is well tested using jest
, with most important parts documented using jsdoc
scheme. This project was created as a learning experience with JavaScript.