Skip to content

[Critical Bug] The Token Counter is bugged #489

@toanth

Description

@toanth

I'm still trying to create a minimum working example, but what I've found so far is that this line:
bool negativeTokens = move is { TargetSquare.Rank: 1} can somehow reduce the total number of tokens as if it consisted of a negative number of tokens.
As the name implies, move is an object of type Move, and when I added a similar line to my program I realized that the token counter had decreased.
Interestingly, the location where this line is added changes how many tokens are subtracted, or if this bugs works at all.
It's also possible that a small number of tokens (less than the actual token count of this line) gets added.
This bug isn't restricted to this specific line of course, but this is the smallest example I've found so far, and it has also been confirmed by other people in the discord server)
I'll hopefully have a fully reproducible example soon, but I wanted to created this issue asap.

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