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

Settable and testable rule flags #106

Open
david-pfx opened this issue Sep 17, 2024 · 0 comments
Open

Settable and testable rule flags #106

david-pfx opened this issue Sep 17, 2024 · 0 comments
Labels
enhancement Improvement to existing capability

Comments

@david-pfx
Copy link
Owner

  1. Rule flags are identifiers starting with '$': $winning. Just use them, no need to declare them.
  2. They are set or cleared by a command: [ player | shark ] -> set $indanger
  3. They are tested as a rule prefix: $winning [ player ] -> [ happyplayer ]. If false, the rule is skipped.
  4. Flags are cleared at the start of each level. Flags with double '$' are not: $$wonlevel3.
  5. Boolean expressions like $winning and not $indanger would be nice too.
@david-pfx david-pfx added the enhancement Improvement to existing capability label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to existing capability
Projects
None yet
Development

No branches or pull requests

1 participant