This is a 2-player game.
First, we start with a line of blue rubber ducks (represented here as circles):
π΅π΅π΅π΅π΅π΅π΅
Now, in each turn, the current player can turn either one blue duck or two adjacent blue ducks red.
So, a valid move would be indexes 2 and 3 (0-indexed):
π΅π΅π΄π΄π΅π΅π΅
Then, the other player could choose index 0:
π΄π΅π΄π΄π΅π΅π΅
And so on. The last player to move loses.
Starting with 7 blue ducks:
Initial board
π΅π΅π΅π΅π΅π΅π΅
Player 1 chooses 3,4
π΅π΅π΅π΄π΄π΅π΅
Player 2 chooses 0
π΄π΅π΅π΄π΄π΅π΅
Player 1 chooses 6
π΄π΅π΅π΄π΄π΅π΄
Player 2 chooses 1,2
π΄π΄π΄π΄π΄π΅π΄
Player 1 chooses 5
π΄π΄π΄π΄π΄π΄π΄
Player 1 was the last one to move, so Player 2 wins.