I cannot teach GPT-4 how to play chess. Conceptualizing a chessboard and making a move are beyond its capabilities.
However, it was able to write (with minimal guidance from me) nice code to display and update a chessboard. That is quite impressive on its own right. It took several tries to get the board right but it did succeed in the end.