I’m trying to make a 2-player chess game in C that would work simply in terminal. I had a lot of problems with fonts, so I just found a good looking ( most importantly – monospaced ( width of glyphs is the same ) ) font and just added chess symbols to LucidaConsole font using FontForge.
I changed symbols that I knew for sure I wouldn’t need in game.
symbols from 192 to 217 are changed
I’ve made an array of strings :
char board[64][4] = {
"È","Ö","É","Ó","Æ","Õ","Ê","Ô",
"×","Ë","×","Ë","×","Ë","×","Ë",
"Ø","Ù","Ø","Ù","Ø","Ù","Ø","Ù",
"Ù","Ø","Ù","Ø","Ù","Ø","Ù","Ø",
"Ø","Ù","Ø","Ù","Ø","Ù","Ø","Ù",
"Ù","Ø","Ù","Ø","Ù","Ø","Ù","Ø",
"Å","Ñ","Å","Ñ","Å","Ñ","Å","Ñ",
"Î","Ä","Ï","Á","Ì","Ã","Ð","Â"
};
Then in the terminal I was expecting it to look like a normal chess board, but instead this is what I’ve got :
failed attempt to display a chess board
Also I can actually write them by hand using codes from Alt+0192 to Alt+0217 :
chess symbols in terminal
I’ll do the coding part somehow, but how do I make those symbols to show in terminal ?
VasyaDryashkaba is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.