Check out Balbo's Chess, our featured variant for October, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

About Game Courier. Web-based system for playing many different variants by email or in real-time.[All Comments] [Add Comment or Rating]
wdtr2 wrote on Sun, Dec 10, 2017 06:40 PM UTC:

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;