Hi Pete
thank's to share this other way to create an interface of chess game
It is well suited for run under qb64 and it let play chess two users , one for side :-)
Well If white is in check and tries to castle, it is forbidden, also in the issue White while castling across a square in which it goes in check.
But I find a BUG for Black, in this position that I post as image, Black King in at first its move and so the Rook in A8, moreover there is no check acrossing D8 and C8 but the program doen't let do the move giving back move forbidden! No castle on Queenside. And also If I try to castle on Kingside it is forbidden!!!
Blush
Your program may be racist if uses different rules for whites and blacks! Big Grin
Be calm Pete, this program is democratic because also trying to castle on Queenside for White (in this position it is possible) is forbidden!
There is a bad use of some flag! It maybe.
Hey but promotion is automated to Queen! Huh It is right only 99% of times, do you agree?
In sum
Thank's again
to show another way to code chessoboard and moving piece by two click by mouse. The rules of pieces is well coded and IMHO must be improved about castle, promotion.