From fac6bb17c38a989fffa86e8025978edbdfa33469 Mon Sep 17 00:00:00 2001 From: Stanislv Schmidt Date: Sat, 22 Feb 2025 19:37:11 +0100 Subject: [PATCH 1/2] Update usage example in README --- README.md | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 20f9844..4199f1f 100644 --- a/README.md +++ b/README.md @@ -9,25 +9,32 @@ The generated positions are random, which is different to Lichess' presets. ```text $ chessg -Generate chess positions and practise on Lichess. -╭─ Positions ─╮ ╭──────────── Commands ────────────╮ -│ 1 Q │ │ h Help │ -│ 2 R │ │ enter Use previous choice │ -│ 3 B+B │ │ q, Ctrl+D Quit │ -│ 4 B+N │ ╰──────────────────────────────────╯ -│ 5 Custom │ -╰─────────────╯ -Position: 4 -. . K . . . . . -. . . B . . . . +╭────────────────────────── 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 . . . . . . . . . . . . . . -. . . . k . . . -. . . . . . . N +B . . . . . . . +. . . . K . . . . . . . . . . . -https://lichess.org/?fen=2K5/3B4/8/8/8/4k3/7N/8%20w%20-%20-%200%201#ai -Choice: ^D +https://lichess.org/?fen=3k4/8/8/1N6/8/B7/4K3/8%20w%20-%20-%200%201#ai +Position (enter = BN): ^D Bye! ``` From 63df9dc4c1e640626d79b1931dbb4de1966ac483 Mon Sep 17 00:00:00 2001 From: Stanislv Schmidt Date: Sat, 22 Feb 2025 19:37:33 +0100 Subject: [PATCH 2/2] Bump patch version --- chess_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chess_gen.py b/chess_gen.py index 6238d3f..40afda2 100644 --- a/chess_gen.py +++ b/chess_gen.py @@ -14,7 +14,7 @@ from rich.panel import Panel from rich.table import Table -__version__ = "1.2.0" +__version__ = "1.2.1" WHITE_PAWN = Piece.from_symbol("P") BLACK_PAWN = Piece.from_symbol("p")