Ludii Forum
Using only Shared or Neutral pieces - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5)
+--- Forum: Ludii Player Problems (https://ludii.games/forums/forumdisplay.php?fid=6)
+--- Thread: Using only Shared or Neutral pieces (/showthread.php?tid=593)



Using only Shared or Neutral pieces - Michael - 06-06-2021

I can't get it too work. And I think I have reported this before. I get an error when I try to use only Neutral or only Shared pieces. The attatced .lud compiles, but when I try to make a move I get the error:

VC_ERROR: Error detected when attempting to draw COMPONENTS
VC_ERROR: Error detected when attempting to draw POSSIBLEMOVES


RE: Using only Shared or Neutral pieces - Michael - 06-06-2021

I got it to work by specifying what piece to add in (move Add). I don't think that should be necessary when there is only one piece it could be. But anyway, it shouldn't both compile and not work.


RE: Using only Shared or Neutral pieces - Eric Piette - 06-07-2021

Hi,

Yes this is normal with your lud example. The default added piece of the ludeme (move Add ...) is the piece of the mover. However here you are using only a neutral piece, so the mover has no piece.
And yes like you said in your second message you have to specify it in that ludeme.

I just added a warning to Ludii if this ludeme is used but any player has no piece to make it clear if this is done.

Regards,
Eric