Skip to content

why do we check that tick is not equal to both a and b when polling Ready? #220

@goldwind-ting

Description

@goldwind-ting

Hi, I have a question: when polling returns Ready, why do we check that tick is not equal to both a and b? Wouldn't checking tick != b be enough? Since tick only changes inside react, a change from the old value should already mean an event occurred.

if state[*dir].tick != a && state[*dir].tick != b {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions