Generate chess positions and practise on Lichess.
Project description
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
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.2.tar.gz
(6.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chess_gen-1.2.2.tar.gz.
File metadata
- Download URL: chess_gen-1.2.2.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b6ac65a0186bbdd8ca801156b912fe848a3c258263416aa1a3be1d92cd7dcfd
|
|
| MD5 |
146c33b63969ba33c8563109c6dca59e
|
|
| BLAKE2b-256 |
afcc5cdef63398f6aeb78d4017a8d28ac8ea4092976fc8b17ee20c772496c0f3
|
File details
Details for the file chess_gen-1.2.2-py3-none-any.whl.
File metadata
- Download URL: chess_gen-1.2.2-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
518e4f39f32bd6312991818c987de196eb37881c815a550f7669b6e28f281a83
|
|
| MD5 |
1df2ca0268e92effebfdef1e30fcb605
|
|
| BLAKE2b-256 |
412aaa3584d2c226ecb2d72e0d58301c8e41c8b445c5de2c648b17494c653e30
|