pychess/pychess-variants
关于
国际象棋变体服务器
游戏与模拟器实测星标增长
- 24小时
- 0
- 7天
- +2
- 15天
- +5
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文www.pychess.org

Pychess-variants is a free, open-source chess server designed to play chess variants.
Currently supported games are listed on https://www.pychess.org/variants
For move generation, validation, analysis and engine play it uses:
On client side it is based on chessgroundx fork of chessground
As you know, pychess-variants is a free server and it will remain free forever. However, maintaining and improving the server costs time and money.
If you like our work and find our server useful, please donate through Patreon or directly through paypal !! Your contribution will be greatly appreciated and help me continue to develop this awesome server.
Installation
Prerequisites
- You need MongoDB up and running. Mongo daemon
Project setup
# Sync Python dependencies into the project virtualenv
uv sync --extra dev
# Optionally activate the virtualenv for interactive work
source .venv/bin/activate
yarn install # Install node requirements
yarn dev # Compile typescript files to javascript
yarn md # Compile md files to html
All Python commands below should be run with uv run ... unless you have already activated .venv.
The project now targets Python 3.14+.
TypeScript and JavaScript checks
yarn format
yarn check-format
yarn lint
yarn typecheck
yarn test
Start server
uv run server/server.py
Python checks and tests
uv run ruff format --target-version py313 .
uv run ruff check .
uv run pyrefly check
env PYTHONPATH=server uv run python -m unittest discover -s tests
env PYTHONPATH=server:tests uv run python -m unittest tests.some_test_module
uv run python -m playwright install
env PYTHONPATH=server uv run python -m pytest tests/test_e2e.py
env PYTHONPATH=server uv run python -m pytest tests/test_gui.py
Docker setup
If you want to avoid installing dependencies (mongo, node, python) you can instead run the server locally in docker using compose. To start it, simply run:
docker compose up --build
This recompiles the frontend and starts the server and DB. Once it is up, you can connect to localhost:8080 in your browser.
For more detailed Docker workflows, including contributor checks and the optional ci service, see docker/README.md.
探索相关项目
加载中…