Adapting Stockfish's code according to a new move order

Job ID: 31207490

Budget: $30 – $250 USD

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.)

Deliverables
Job description:
-Adapt the Stockfish code so that it analyzes chess games according to the rules of Balanced Alternation (BA). That is, modify Stockfish 14 chess engine’s moving order so that it is based on Balanced Alternation (instead of the standard sequence of WB/WB/WB...)
-Run Stockfish 14 BA at the starting position to see the evaluation of Stockfish 14 BA at a depth of at least 40.

(For examples, see - Fairy Stockfish, which is made for Stockfish chess variants, https://github.com/ianfab/Fairy-Stockfish )

Everything that will be done will be open source and available to public (e.g. uploaded onto GitHub).