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;
|
function TChessGame.QueenHasValidMove(ASquare: TPoint): boolean;
|
||||||
begin
|
begin
|
||||||
Result:=false;
|
Result:=false;
|
||||||
if (RookHasValidMove(ASquare) and BishopHasValidMove(ASquare)) then exit(true);
|
if (RookHasValidMove(ASquare) or BishopHasValidMove(ASquare)) then exit(true);
|
||||||
result:=false;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TChessGame.KingHasValidMove(ASquare: TPoint): boolean;
|
function TChessGame.KingHasValidMove(ASquare: TPoint): boolean;
|
||||||
|
Reference in New Issue
Block a user