Skip to content

yvesgurcan/chess-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♞ JavaScript mobile-first chess client.

How does it work?

  • The game state and the game view are separated.
  • The view re-renders as the state changes.
  • Projections are used to validate whether a move is legal or not.
  • Vectors are used to translate the position of the pieces.

Artificial Intelligence

Uses Stockfish-js, a JavaScript version of Stockfish compiled with WebAssembly. Stockfish-js takes the form of a Web Worker.

Stockfish relies on the universal chess interface (UCI) protocol.

Computer Chess wiki: http://computer-chess.org/doku.php

Development

Install dependencies

Install project dependencies:

npm i

Run development server

Run development server:

npm start

Run functions

Please follow the instructions in the chess-functions repository.

Run WebSocket server

Please follow the instructions in the chess-socket repository.

Create a build

Bump version and create new build

npm version patch