11-17-2020, 03:43 PM
(This post was last modified: 11-17-2020, 07:17 PM by slimy_asparagus.)
(11-17-2020, 01:14 PM)Eric Piette Wrote:Quote:The "X" problem is how do I make a player move the piece from a stack that is a.) one of their pieces and b.) a piece of their choice. (I admit with only 1 piece each b.) is redundant but it will be relevant in the future. ) At the moment it (as described earlier in the thread) moves the top piece even though that belongs to the opponent.
You mean moving any piece in a stack? So to be clear
If you have a stack of (Piece1, Piece2, Piece3), all these pieces owned by the mover, you want to be able to move any of these pieces?
Yes. Because as I implement the game those pieces will be different.
Actually the situation is worse at the moment.
There is a stack (My piece at the bottom, Opponent's piece at the top). Whatever I do it it selects the top piece rather than my piece. (You do need to use the first .lud I attached not the one with the compile error.)
I would not normally expect to be able to move an opponent's piece (with some exceptions).
I would still appreciate an answer to the "Y" question, if nothing else so I can start to actually understand Ludii.