Skip to main content

A Python API wrapper for Fairyground Variant Challenge.

Project description

Chess Variant Python SDK

The absolute easiest way to create and view chess variants via Python.

Powered by Fairyground Variant Challenge.

Installation

pip install chess-variant

Basic Usage

import chess_variant

# 1. Start a game instantly
game_url = chess_variant.play("3check")
print(f"Play your game here: {game_url}")

# 2. View the state of an existing room (e.g. room '123456')
state = chess_variant.view("123456")
print(f"White is playing: {state['white']}!")
print(f"Board FEN: {state['fen']}")

# 3. Get the PGN automatically
print(chess_variant.pgn("123456"))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chess_variant-1.0.2.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chess_variant-1.0.2-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file chess_variant-1.0.2.tar.gz.

File metadata

  • Download URL: chess_variant-1.0.2.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for chess_variant-1.0.2.tar.gz
Algorithm Hash digest
SHA256 11133a990ee2df1c18488c408125628fc97c63aaf9b55a47ed94ea4fd8b80273
MD5 d85ada1d806932d12eb6018ef843e5ab
BLAKE2b-256 65d52eb01e9ae2cc893934bc139d163138f20f95e8079515387275f2ea275fd9

See more details on using hashes here.

File details

Details for the file chess_variant-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: chess_variant-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for chess_variant-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a395042eab048be492416340bf84356be5829f2ec2473928a47989fa4e58c46f
MD5 2e08f2a8cef9350868234ca15a76339d
BLAKE2b-256 8b7b5fa2bf2d227f5cd09780817cc3eb7fa84aeb7bec11b6280eb0bd62846b3f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page