I'm trying to implement a game with pieces for each player and a third neutral piece that can be moved by any player.
I can define
And both players can move their own pieces only. Thats ok.
If I write
Both players can move the shared pieces. Ok too.
But I don't know how to allow them to have both options together.
I figured that
will work but I get an error.
Any ideas?
I can define
Code:
(play (forEach Piece))
And both players can move their own pieces only. Thats ok.
If I write
Code:
(play (forEach Piece Shared))
Both players can move the shared pieces. Ok too.
But I don't know how to allow them to have both options together.
I figured that
Code:
(play
{
(forEach Piece)
(forEach Piece Shared)
}
)
will work but I get an error.
Any ideas?