I modified blackInitialHandle like so to return some values before things go wrong.
sub blackInitialHandle:
set tm thismove;
set source1 join char thismove 2 char thismove 3;
set dest1 join char thismove 5 join char thismove 6 char thismove 7;
set source2 join char thismove 11 char thismove 12;
set dest2 join char thismove 14 join char thismove 15 char thismove 16;
die "tm: " #tm "s1: " #source1 "s2: " #source2 "d1: " #dest1 "d2: " #dest2;
move #source1 #dest1;
move #source2 #dest2;
set many ok 1 promo 0 ori #source1 desti #dest1 mover space #dest1;
endsub;
Here are the values I got:
tm: g e7-d11
s1: e7
s2:
d1: d11
d2:
I broke it into multiple lines so that you can clearly see that source2 and dest2 have no values.
So far, your code is not set up to handle two moves on the same turn. When I moved one White piece, it immediately changed sides for me to move a Black piece.
For a second test, I moved the die command down two lines to see if "move #source2 #dest2;" was the problem. Since the die command still worked, I assume something happened in HG's code.
I modified blackInitialHandle like so to return some values before things go wrong.
Here are the values I got:
I broke it into multiple lines so that you can clearly see that source2 and dest2 have no values.
So far, your code is not set up to handle two moves on the same turn. When I moved one White piece, it immediately changed sides for me to move a Black piece.
For a second test, I moved the die command down two lines to see if "move #source2 #dest2;" was the problem. Since the die command still worked, I assume something happened in HG's code.