Chess Gen
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 │ │ Ctrl+D Quit │
│ board. White 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!
You can set the initial piece configuration directly in the command line:
$ chessg Qr
[...]
. . . . . . . .
. . . . . . . .
. . . . . . . r
. . . . . . . .
. . . . . . Q .
k . . . . . . .
. . . . . . . .
. K . . . . . .
https://lichess.org/?fen=8/8/7r/8/6Q1/k7/8/1K6%20w%20-%20-%200%201#ai
Position (enter = Qr):
Installation
pip install chess-gen
Release files for chess-gen 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chess_gen-1.2.2.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chess_gen-1.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.5 kB
Release files / chess_gen-1.2.2.tar.gz
| Download URL | chess_gen-1.2.2.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b6ac65a0186bbdd8ca801156b912fe848a3c258263416aa1a3be1d92cd7dcfd
|
|
BLAKE2b-256 checksum How to use checksums |
afcc5cdef63398f6aeb78d4017a8d28ac8ea4092976fc8b17ee20c772496c0f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Release files / chess_gen-1.2.2-py3-none-any.whl
| Download URL | chess_gen-1.2.2-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
518e4f39f32bd6312991818c987de196eb37881c815a550f7669b6e28f281a83
|
|
BLAKE2b-256 checksum How to use checksums |
412aaa3584d2c226ecb2d72e0d58301c8e41c8b445c5de2c648b17494c653e30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|