• In this case you’re just fucked lol.

      If the kid has a relatively clear “average” gender, (e.g. spends 50% of the time as simply female, 25% of the time simply xenogender, 25% simply demimale) and this average doesn’t change over time, you could compute the average gender and then use the aforementioned algorithm to solve. BUT if the kid tends to move genders over years or even decades you’re never gonna have a clear winner.

      If the kid comes out as genderfluid your best bet is to just call it a draw and both players get their money back