• Challenge Author
    + 1 comment

    Oh man

    let's look at the following input

    1
    10
    

    this when represented in Binary is 1010

    Now, Lousie goes first. As 1010 is not a power of 2, it is reduced by the largest power of 2 less than 1010 which is 8. Now, the counter is 2. As 2 is a power of 2, it is reduced by half by Richard to 1 and the game ends.

    Richard Wins.

    Your code however prints Louise as the winner.