08-11-2020, 07:21 AM
@Dale:
That should compile, can you post here the full description you have?
The (from) is the site from where is the piece currently. And the Empty means you want to move to the empty site in the light of sight of the piece.
For the shoot one, yes that will work if you should the piece in the from location and then remove the piece in the from location. But that's not necessary to do that, just moving the piece is better.
For the last question, I answered to you in another thread to be sure of what you ask, then I will help you with that.
@ccxvii
For a such kind of move you can look the code of International draughts for the double counters, that's really similar to what you ask I guess
here an extract using a ludemeplex:
("HopDiagonalSequenceCapture" before:(count Rows) after:(count Rows))
If you do not succeed with that I can write a full description if you want with a simple case doing a such hop move.
That should compile, can you post here the full description you have?
The (from) is the site from where is the piece currently. And the Empty means you want to move to the empty site in the light of sight of the piece.
For the shoot one, yes that will work if you should the piece in the from location and then remove the piece in the from location. But that's not necessary to do that, just moving the piece is better.
For the last question, I answered to you in another thread to be sure of what you ask, then I will help you with that.
@ccxvii
For a such kind of move you can look the code of International draughts for the double counters, that's really similar to what you ask I guess
here an extract using a ludemeplex:
("HopDiagonalSequenceCapture" before:(count Rows) after:(count Rows))
If you do not succeed with that I can write a full description if you want with a simple case doing a such hop move.