09-17-2021, 02:33 PM
(This post was last modified: 09-17-2021, 02:33 PM by Eric Piette.)
Hi,
You can see an example of the use of (append ...) in Reversi. This is not deprecated that's just another ludeme use to append a list of moves in a single one.
And for what you are asking, depend:
- if that's a consequence (so all of that inside a (then ...)), yes you can simply do (and (<A>) (<B>) (then (<C>)) which is not equivalent to (and ((<A>) (then (<C>))) ((<B>) (then (<C>))))
- But if you are outside of a consequence, you have to use a (or (do (and (<A>) (<B>)) next:<C>) (<C>))
Regards,
Eric
You can see an example of the use of (append ...) in Reversi. This is not deprecated that's just another ludeme use to append a list of moves in a single one.
And for what you are asking, depend:
- if that's a consequence (so all of that inside a (then ...)), yes you can simply do (and (<A>) (<B>) (then (<C>)) which is not equivalent to (and ((<A>) (then (<C>))) ((<B>) (then (<C>))))
- But if you are outside of a consequence, you have to use a (or (do (and (<A>) (<B>)) next:<C>) (<C>))
Regards,
Eric