Validate that "failure conditions" are "optional" objectives #1347
Labels
G-Scenarios
An issue having to do with scenario design, the way scenarios are described and loaded, etc.
S-Nice to have
The bug fix or feature would be nice but doesn't currently have much negative impact.
T-Challenges
Involves the challenge scenarios - shorter games with objectives.
Z-CI
This issue is about continuous integration pipelines - GH Actions - tests and releases on server.
Z-Developer Experience
This issue seeks to make life easier for developers writing Scenarios or other Swarm code.
Z-Feature
A new feature to be added to the game.
All objectives that are negated prerequisites of required goals should themselves be optional. Otherwise, it is impossible to win!
This pitfall burned some time while debugging failing integration tests for #1342, which has a single
"not"
prerequisite on submitting the "wrong answer". Fixing the test was as simple as settingoptional: true
on that prerequisite, but discovering the oversight was not straightforward.Having a more direct way to express "failure conditions" (#1046) may be related to this.
Code pointers:
The text was updated successfully, but these errors were encountered: