You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yubrandon edited this page Feb 4, 2026
·
3 revisions
The chessClient component contains the chess board itself and the chess logic. Two JavaScript libraries are used to achieve this, chessboardjs and chessjs.
ChessBoardJS
ChessboardJS is used to create the chessboard itself. If a developer seeks to alter styling to the chess board they will have to do it with this library. POST's from the YStemAndChess component come here to alter the chess board. When the chess board has been updated this component will send a POST to YStemAndChess to then update the [chessServer](Add url here).
ChessJS
ChessJS is a library that can be integrated with ChessboardJS to add chess logic to the game.
Layout
Most of the important code for this component is contained within the index.js file. Here the two libraries are utilized to create the chess board with chess logic.
Environment
All environment variables should be stored in a .env file in the root of the chessClient component.