RonSijm / ButtFish

Effortlessly transmitting Morse Code of chess moves to your butthole 💝
1.43k stars 29 forks source link

Create Custom Board Visual #30

Closed RonSijm closed 2 years ago

RonSijm commented 2 years ago

Given the input: "rnb1kbnr/pppp1ppp/8/4p1q1/5P2/4PQ2/PPPP2PP/RNB1KBNR b KQkq - 2 3"

StockFish has the option to generate a visual chess board though the "d" command:

 +---+---+---+---+---+---+---+---+
 | r | n | b |   | k | b | n | r | 8
 +---+---+---+---+---+---+---+---+
 | p | p | p | p |   | p | p | p | 7
 +---+---+---+---+---+---+---+---+
 |   |   |   |   |   |   |   |   | 6
 +---+---+---+---+---+---+---+---+
 |   |   |   |   | p |   | q |   | 5
 +---+---+---+---+---+---+---+---+
 |   |   |   |   |   | P |   |   | 4
 +---+---+---+---+---+---+---+---+
 |   |   |   |   | P | Q |   |   | 3
 +---+---+---+---+---+---+---+---+
 | P | P | P | P |   |   | P | P | 2
 +---+---+---+---+---+---+---+---+
 | R | N | B |   | K | B | N | R | 1
 +---+---+---+---+---+---+---+---+

Apparently this is not UCI standard - so Leela Chess Zero (Lc0) engine does not support this.

To fix this I'm busy implementing a custom FEN to ASCII component, so every engine can show an ascii of the chessboard

RonSijm commented 2 years ago

Note to self: box drawing: https://en.wikipedia.org/wiki/Box-drawing_character