Skip to content

consider reset state runNumber when max run number is reached #13

@yfcc

Description

@yfcc

ARCADE/arcade/Core/State.m

Lines 113 to 114 in b609bdf

if obj.runNumber >= obj.maxRepetitions
nextState = obj.nextStateAfterMaxRepetitions;

Currently runNumber will no be reset in any case. A reset method would be helpful if the next state after max run number is some state before the current state. In this case the counter should be reset to zero.

Certainly a bit dangerous because it could results in infinite loop

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