11-29-2020, 03:06 AM
In many games, players do a decision type A , which may trigger a decision type B.
However it seems that ludii only supports decision followed by non-decision.
A decision followed by decision by the same player , as far as I understand, requires moveAgain.
However, moveAgain is not sufficient as I understand it, to support decision A (such as a placement) triggering decision B (such as a swap) based on a condition (such as a crosscut pattern).
I tried a few reasonable attempts in my Swap pieces thread and Pattern recognition thread, and I am looking forward to hearing how I have made mistakes, but it could be useful to explicitly add in functionality for a decision followed by a different decision.
if somebody has workaround code for this please let me know.
thanks!
However it seems that ludii only supports decision followed by non-decision.
A decision followed by decision by the same player , as far as I understand, requires moveAgain.
However, moveAgain is not sufficient as I understand it, to support decision A (such as a placement) triggering decision B (such as a swap) based on a condition (such as a crosscut pattern).
I tried a few reasonable attempts in my Swap pieces thread and Pattern recognition thread, and I am looking forward to hearing how I have made mistakes, but it could be useful to explicitly add in functionality for a decision followed by a different decision.
if somebody has workaround code for this please let me know.
thanks!