Skip to main content

Generate chess positions and practise on Lichess.

Project description

Chess Gen

Latest PyPi version

Generate chess positions and practise on Lichess.

The generated positions are random, which is different to Lichess' presets.

Example

$ chessg
╭────────────────────────── Piece Input ──────────────────────────╮ ╭────────── Commands ──────────╮
│ Generate chess positions and practise on Lichess.               │ │  h       Help                │
│                                                                 │ │  Enter   Use previous input  │
│ Provide the symbols of the pieces to place on the board. White  │ │  Ctrl+D  Quit                │
│ pieces are P, N, B, R, Q, black pieces are p, n, b, r, q. Kings │ ╰──────────────────────────────╯
│ are automatically added and must not be part of the input.      │                                 
│ You can separate piece symbols by commas and/or spaces.         │                                 
│                                                                 │                                 
│ Examples:                                                       │                                 
│                                                                 │                                 
│ Qr - queen against rook                                         │                                 
│ R, p, p - rook against two pawns                                │                                 
│ N B B q - knight and two bishops against a queen                │                                 
│                                                                 │                                 
╰─────────────────────────────────────────────────────────────────╯                                 
Position: BN 
. . . k . . . .
. . . . . . . .
. . . . . . . .
. N . . . . . .
. . . . . . . .
B . . . . . . .
. . . . K . . .
. . . . . . . .
https://lichess.org/?fen=3k4/8/8/1N6/8/B7/4K3/8%20w%20-%20-%200%201#ai
Position (enter = BN): ^D
Bye!

Installation

pip install chess-gen

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_gen-1.2.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

chess_gen-1.2.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file chess_gen-1.2.1.tar.gz.

File metadata

  • Download URL: chess_gen-1.2.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for chess_gen-1.2.1.tar.gz
Algorithm Hash digest
SHA256 79ba8327b4c87a09e8bf43324b741e7e8f5b503d47fbdc713c4628829c327fde
MD5 3b1d8ec5de2ecad72e7564a2f03aa17d
BLAKE2b-256 2278e4a2d7ae973cbb5eeeb284241a7c142275401f88d6cd170aa1cd3e36b5dd

See more details on using hashes here.

File details

Details for the file chess_gen-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: chess_gen-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for chess_gen-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79d2683af8f2c5c9ab212cd3051371766582d657b294a16ca71e3e61ebf8861e
MD5 441eb367e8f0aa1ad2cd9d7417a5fa89
BLAKE2b-256 ee99af632aa47d26d637b51208d7b7a370d2a3d94a4b05eacdc4d9a355d4556f

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