My invulnerable :) chess AI is going to be done, but I'd appreciate some pointers on a chess GUI in Python
I have a legal-move generator coming on nicely, I have pyGame.
Right now, I am printf'ing the board state to the Pycharm console, list of lists, White upper case and black lower case characters, init'ed like this:
It is legible in the fixed width font printout method below, but in array format - a GUI would ease the pain.
self.board = [[' ',' ',' ',' ',' ',' ',' ',' '] for i in range(8)]
self.board = ['R', 'N', 'B', 'Q', 'K', 'B', 'N', 'R']
self.board = ['P', 'P', 'P', 'P', 'P', 'P', 'P', 'P']
self.board = ['r', 'n', 'b', 'q', 'k', 'b', 'n', 'r']
self.board = ['p', 'p', 'p', 'p', 'p', 'p', 'p', 'p']
This is my ChessBoard class's print method...
for i in range(7,-1,-1):
print(i, '>', self.board[i])
What might the best GUI approach be?
Would I need transparent pieces over my own board GUI, to do select and drag and drop movements w a mouse?