I'm building a chess program in python. Currently, my board looks like this:
8 [r] [n] [b] [q] [k] [b] [n] [r]
7 [p] [p] [p] [p] [p] [p] [p] [p]
6 [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]
5 [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]
4 [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]
3 [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]
2 [P] [P] [P] [P] [P] [P] [P] [P]
1 [R] [N] [B] [Q] [K] [B] [N] [R]
# A B C D E F G H
This is the current output, but I don't really like it much. You can't tell if a square is black or white, and using caps and lower case letters for the pieces is also not that great. Do you guys maybe have a better idea of how to visualize the board without using third-party libraries?
I tried the chess Unicode characters and colorization in the console, but that doesn't work on Windows.
print("\u2657")
>>> UnicodeEncodeError: 'charmap' codec can't encode character '\u2657' in position 0: character maps to <undefined>