Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix castling exception #8

Open
LordDarkula opened this issue Sep 1, 2016 · 1 comment
Open

Fix castling exception #8

LordDarkula opened this issue Sep 1, 2016 · 1 comment
Labels

Comments

@LordDarkula
Copy link
Owner

When castling, the Location of the King somehow ends up as empty when testing checks in King.

test = copy.deepcopy(position)
# Somehow the Location of the King is empty 

test_move = Move(end_loc=move.end_loc,
                 piece=test.piece_at_square(self.location), # Problem right here
                 status=move.status,
                 start_rank=self.location.rank,
                 start_file=self.location.file)

test.update(test_move)
test_king = test.piece_at_square(test_move.end_loc)
@LordDarkula LordDarkula added the bug label Sep 1, 2016
@LordDarkula
Copy link
Owner Author

Most probably caused by Queen side castling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant