Adapting Stockfish's code
Budget: $30 – $250 USD
Help me with adapting Stockfish's code according to a new move order
The standard chess sequence can be written as WB/WB/WB... (the slashes separate alternating pairs of moves). "Balanced Alternation" proposes the following move sequence: After White’s (W) initial move, first Black (B) and then White each have two moves in a row (BBWW), followed by the usual alternating sequence, beginning with W, which altogether can be written as WB/BW/WB/WB/WB…. Except for reversal of the 3rd and 4th moves from WB to BW (bold), this is the standard chess sequence.
There are two restrictions: A player can check or capture a piece only on the second move of a double move to ensure that the opponent can respond to it. In other words, a player can neither give a check nor capture a piece in the first move of a double move. (For example, White cannot use the double move to check and then capture the opponent’s King.)
The standard chess sequence can be written as WB/WB/WB... (the slashes separate alternating pairs of moves). "Balanced Alternation" proposes the following move sequence: After White’s (W) initial move, first Black (B) and then White each have two moves in a row (BBWW), followed by the usual alternating sequence, beginning with W, which altogether can be written as WB/BW/WB/WB/WB…. Except for reversal of the 3rd and 4th moves from WB to BW (bold), this is the standard chess sequence.
There are two restrictions: A player can check or capture a piece only on the second move of a double move to ensure that the opponent can respond to it. In other words, a player can neither give a check nor capture a piece in the first move of a double move. (For example, White cannot use the double move to check and then capture the opponent’s King.)