You've already forked lazarus-ccr
FPChess: fix in the move validation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4137 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -851,8 +851,7 @@ end;
|
||||
function TChessGame.QueenHasValidMove(ASquare: TPoint): boolean;
|
||||
begin
|
||||
Result:=false;
|
||||
if (RookHasValidMove(ASquare) and BishopHasValidMove(ASquare)) then exit(true);
|
||||
result:=false;
|
||||
if (RookHasValidMove(ASquare) or BishopHasValidMove(ASquare)) then exit(true);
|
||||
end;
|
||||
|
||||
function TChessGame.KingHasValidMove(ASquare: TPoint): boolean;
|
||||
|
Reference in New Issue
Block a user