08-06-2023, 07:35 AM
(This post was last modified: 08-06-2023, 07:36 AM by Alain Busser.)
Hello,
if there is a
in the start rules, player P1 has pieces called "Ball1" and player P2 has pieces called "Ball2". This means that at compilation the string "Ball" is concatenated with "1" or "2". Is there a way to do the same thing with the word "Track" so that player P1 has "Track1" and player P2 has "Track2"?
Or is there a way to associate each player with his track, so that I could write something like
In the included file, I had to do something a bit tricky to make it work (P1 sows from left to right, P2 sows from right to left, and if the last seed sowned falls into an empty place the player looses; by the way it is the simplest sowing game I know - great for children).
I tried with a map but a ludeme beginning with "mapEntry" after Move is not accepted at compilation.
if there is a
Code:
(piece "Ball" Each)
in the start rules, player P1 has pieces called "Ball1" and player P2 has pieces called "Ball2". This means that at compilation the string "Ball" is concatenated with "1" or "2". Is there a way to do the same thing with the word "Track" so that player P1 has "Track1" and player P2 has "Track2"?
Or is there a way to associate each player with his track, so that I could write something like
Code:
(trackSite Move "Track" owner:(mover) steps:(size Stack at:(from)))
In the included file, I had to do something a bit tricky to make it work (P1 sows from left to right, P2 sows from right to left, and if the last seed sowned falls into an empty place the player looses; by the way it is the simplest sowing game I know - great for children).
I tried with a map but a ludeme beginning with "mapEntry" after Move is not accepted at compilation.