Skip to main content

Reusable Betza notation parser and movement diagram visualizer.

Project description

betza-visualizer

Visualizes fairy chess piece movements from their Betza notation.

The project contains:

  • a reusable dependency-free Python package, importable as betza_visualizer
  • a Python Textual TUI frontend
  • a browser frontend using TypeScript, HTML, CSS, and SVG

Python library usage

The core parser and SVG renderer have no runtime dependencies:

from betza_visualizer import BetzaParser, BetzaSvgOptions, render_betza_svg

moves = BetzaParser().parse("BN", board_size=11)
svg = render_betza_svg("BN", BetzaSvgOptions(piece_label="A", title="Archbishop movement"))

The generated SVG string is intended to be embedded directly into documentation pages.

Optional TUI dependencies

The Textual frontend needs optional dependencies:

pip install 'betza-visualizer[tui]'
python main.py

Development

pip install -e '.[dev]'
python -m pytest tests/python_unittests

Publishing

The package metadata is defined in pyproject.toml. A local wheel can be built with:

python -m build

Almost everything in this repository made by using Google AI tools.

Google AI Studio, gemini-cli, Google Labs Jules using gemini-2.5-pro, gemini2.5-flash

codex-cli using gpt-5.4-codex, gpt-5.5-codex

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

betza_visualizer-0.1.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file betza_visualizer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for betza_visualizer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4314f5f2682b8c683bac4849c448cceee51cc206a0699f95ee5778e85ca95cf6
MD5 bb14f8697652c41e1a9b3e24806a1164
BLAKE2b-256 c38d88d804df663beee529ff4d080bde345e5c39b0de47093e21757b0da50b17

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