hulud

3.5.2023

Displaying the Chess Board

I actually wanted to concentrate on the essentials when writing the chess engine. Therefore I took a Rust library for the game logic. Unfortunately, this cannot output the chess board to the console. I took care of that in my first step:
  A B C D E F G H
8 ♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜
7 ♟︎ ♟︎ ♟︎ ♟︎ ♟︎ ♟︎ ♟︎ ♟︎
6 . . . . . . . .
5 . . . . . . . .
4 . . . . . . . .
3 . . . . . . . .
2 ♙ ♙ ♙ ♙ ♙ ♙ ♙ ♙
1 ♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖

For this I took the FEN string of the game and parse it. Then, of course, I display the figures in UTF-8, we are no longer in the Middle Ages.

Index

Archive

About Me