🕸📝Fergus Duniho wrote on Sun, Dec 12, 2010 04:01 AM UTC:
The extendmove command should do what you want. It does not change the turn order, and it does not force anyone to pass a turn. What it does is return the player to the form for making a move, showing the moves as they have already been made for that turn, and allowing the player to make another move. It then appends the new move to the past moves. It may be used once or multiple times for longer moves, depending on what is called for. When using this command, care should be taken that it only be used for the current move. This may involve writing code that distinguishes between partial moves and complete moves. Basically, it lets you use the mouse to do what you could always do previously by typing moves manually. See my current code for Korean Chess for an example similar to what you want. It allows the player to swap one or both pairs of Knight and Elephant, then immediately make a move, all using the mouse. But I'm going to change this in a new preset, because this doesn't follow the rules of Korean Chess strictly.
The extendmove command should do what you want. It does not change the turn order, and it does not force anyone to pass a turn. What it does is return the player to the form for making a move, showing the moves as they have already been made for that turn, and allowing the player to make another move. It then appends the new move to the past moves. It may be used once or multiple times for longer moves, depending on what is called for. When using this command, care should be taken that it only be used for the current move. This may involve writing code that distinguishes between partial moves and complete moves. Basically, it lets you use the mouse to do what you could always do previously by typing moves manually. See my current code for Korean Chess for an example similar to what you want. It allows the player to swap one or both pairs of Knight and Elephant, then immediately make a move, all using the mouse. But I'm going to change this in a new preset, because this doesn't follow the rules of Korean Chess strictly.