Command: "2nd-last-to?" & "2nd-last-f... Log Out | Topics | Search
Moderators | Register | Edit Profile

Zillions of Games Discussion Forum » Desired Features for Zillions of Games » Command: "2nd-last-to?" & "2nd-last-from?" « Previous Next »

Author Message
Shigeki Watanabe (Watanabe)
New member
Username: Watanabe

Post Number: 11
Registered: 3-2018
Posted on Friday, March 16, 2018 - 5:58 am:   

I hope Zillion to implement a command ("2nd-last-to?") to evaluate whether the current position is the position where a piece moved to at two-previous move-turn.

Likewise, I hope Zillion to implement a command ("2nd-last-from?") to evaluate whether the current position is the position where a piece existed before move at two-previous move-turn.

I can determine whether the current position is previous Black's move position, within a moving block of current Black's move by using this command.

If current move-turn is Black, "last-to" is previous White's move-turn and "2nd-last-to" is previous Black's move-turn, in Chess which is played alternately in order of White - Black - White - Black -.
Shigeki Watanabe (Watanabe)
New member
Username: Watanabe

Post Number: 13
Registered: 3-2018
Posted on Tuesday, March 27, 2018 - 4:30 pm:   

I need to use them (last-to?, 2nd-last-to?) in "Triple Move Shogi".
In this game, each player moves three different pieces consecutively in own turn.
Shigeki Watanabe (Watanabe)
New member
Username: Watanabe

Post Number: 16
Registered: 3-2018
Posted on Monday, April 02, 2018 - 7:42 am:   

I created a "Shogi-TripleMoveOther" that a player moves three different pieces in own turn, using a different way from the above.

Specifically, record the position of the first move as the rank and file, and refer to it at the third move.
The position of the second move is referred to using "last-to".

The disadvantage of ZoG is that there is no way to save position (rank and file) beyond the turn.

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: