• 0

Unicode Chessboard?


Question

Hey,

 

Trying to create a chessboard (with boxes and everything) to create a console based chess game in python. This is not a homework.

 

However, I am encountering a problem with spacing, where the chess pieces just seem to be wider in size than the regular space.

 

So what I mean is:

the box:

????
?  ?
????  

however, when I try placing chess piece in there I get:


????????
?? ?
????  

Any ideas or help on this?

 

Characters:

????????????
? ? ? ? ? ? ? ? ? ? ?

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Use a monospace font, the letters have the same width for monospace fonts, most code editors also use monospace fonts for that reason.

  • Like 2
Link to comment
Share on other sites

This topic is now closed to further replies.