In a shogi-like game I am trying to add a copper general on the Black's 6th move and on Black's 20th move.
The built-in vaiable movenum seems to do the trick. The result of this is the copper appears at the end of the 6th move, and appears on the board. so far so good. I was suprised that it appeared at the end of the move.
When White moves, all is ok, but poof Black's copper general disappears. The adding of the Copper General does not appear in the "move list". I can live with that. :)
if the php program re-plays the move list between turns, this would explain my issue.
In a shogi-like game I am trying to add a copper general on the Black's 6th move and on Black's 20th move.
The built-in vaiable movenum seems to do the trick. The result of this is the copper appears at the end of the 6th move, and appears on the board. so far so good. I was suprised that it appeared at the end of the move.
When White moves, all is ok, but poof Black's copper general disappears. The adding of the Copper General does not appear in the "move list". I can live with that. :)
if the php program re-plays the move list between turns, this would explain my issue.
Any Advice?
Code snippet below:
// section pre-move-1
set mymove movenum;
if == 11 #mymove:
add c |11h;
endif;
if == 40 #mymove:
add c |11g;
endif;