[ANN] chess puzzles on gemini

Côme Chilliet come at chilliet.eu
Wed Dec 2 20:53:24 GMT 2020


Hello,

After Tic Tac Toe, I worked on rendering a chess board in Unicode.

I did not find a nice way to color black squares, but it works.
Also, most gemini clients use dark themes and as a result inverse white and black colors on chess pieces.

You can get a random chess puzzle on gemini://chess.lanterne.chilliet.eu

The puzzle is taken from chess.com using their API. I looked into lichess API but did not find an endpoint for puzzles, and lichess returns PGN and my code was only supporting FEN.
Note that the API does not give the solution, so you cannot know if you succeeded without using HTTP.
But you can still use this page to work on your chess skills.

The page is not interactive. Note that implementing an interactive chess board could be done by using an input field and Algebraic notation.
But this would mean running a chess engine, and keep a server-side session, which I do not want to get into yet.

Côme

PS: and yes, it does mean I managed to use SNI to host several domain on the same server.




More information about the Gemini mailing list