08-26-2022, 05:09 PM
What is the idiomatic Ludii-way of doing what the following does, then?
Is that it?
The reason I wonder is that I find it strange that there isn't a ludeme for "first do this, if possible, then do this, if possible (regardless of whether the first thing happened or not)". It's such a natural way of composing ludemes, but neither (and) nor (do next:) work like this.. Maybe the new (seq {})?
Code:
(do
("Something")
next:(if
("Condition")
("Consequence")
(pass)
)
)
Is that it?
The reason I wonder is that I find it strange that there isn't a ludeme for "first do this, if possible, then do this, if possible (regardless of whether the first thing happened or not)". It's such a natural way of composing ludemes, but neither (and) nor (do next:) work like this.. Maybe the new (seq {})?