Skip to content

bmacho/online-drophouse-stockfish-src

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online Drophouse Stockfish Src

This project is a modified version of gbtami/pychess-variants analyis board, so it can analyse bughouse positions. (I just replaced "crazyhouse" with "bughouse", and removed the part when it puts the taken pieces into hands.)

It is a toy/POC project, and I don't intend to work on it, fix bugs.

The repository contain the whole pychess-variants project, which is a whole chess server, with login, server-side chess, and much more.

Usage

Open https://online-drophouse-stockfish.herokuapp.com/analysis.html with ?fen=FEN as a query parameter.

Components

For move generation, validation, analysis it uses

On client side it is based on chessgroundx fork of chessground.

Installation

Prerequisites

Project setup

pip3 install -r requirements.txt --user;
yarn install;
yarn dev;

For MacOS, replace the last command with:

yarn dev-mac

Start server

python3 server/server.py

analysis.html

Then you open the output of localhost:8080/analysis/crazyhouse, save it as html, and maybe do some magic with the absolute paths.

Also you should append some special https headers or the browsers will refuse to open wasm.

See my heroku repo: https://github.com/bmacho/online-drophouse-stockfish

Licence

My work and gbtami's work is under AGPL-3, the components may use more permissive licences.

Languages

  • JavaScript 86.5%
  • TypeScript 5.0%
  • Python 3.8%
  • CSS 3.3%
  • HTML 1.4%
  • Shell 0.0%