Skip to content

is_zeroing and is_capture operation outputs #169

@bhathiya

Description

@bhathiya

I'm using python-chess to analyze a game.

I have my code like this, and I expect 3 boolean outputs.

print("is_castling: " + unicode(board.is_castling(node.move)));
print("is_zeroing: " + unicode(board.is_zeroing(node.move)));
print("is_capture: " + unicode(board.is_capture(node.move)));

But this is what I get.

is_castling: False
is_zeroing: 4194304
is_capture: 4194304

When I use bool() to wrap above values, it always returns true.
What am I missing here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions