Ludii Forum
How to Push enemy? - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Questions (https://ludii.games/forums/forumdisplay.php?fid=13)
+--- Forum: About Ludii (https://ludii.games/forums/forumdisplay.php?fid=14)
+--- Thread: How to Push enemy? (/showthread.php?tid=350)

Pages: 1 2


RE: How to Push enemy? - Eric Piette - 02-22-2021

You can use (forEach Direction ...) to iterate through directions yes to compute a move for each directions. However I do not think that will help for what you asked before.

In waiting that I find the time to work on the ludeme (push ...) I replace the entry AbsoluteDirection of Push by Direction.
That should work for what you are trying to do, but I did not test it. That will be in the next release.

Regards,
Eric