ttyrke Going to heavily caveat the following "bug" report with: I muck with the code. I'm well aware I'm using the game outside the normal state of affairs.
Bug report:
Child gender is inverted when child is placed in guest house.
Details:
I modify the code to have only female gender babies.
But even with that only being set to 0 (female), I get the following outcome:
Birth:
Guest:
I haven't tracked down where the inversion is happening.
*Edit: Going to test with my modification removed to see if it is truly inverting each time.
Results of 5 tests with modification:
girl -> boy
girl -> boy
girl -> boy
girl -> boy
girl -> boy
Results of 5 tests with clean index.html no modification:
boy -> boy
boy-> boy
boy-> boy
girl -> girl
girl -> girl
So not a bug with unmodified code. I'm still curious what is being introduced when it's only ever set to 0, not 0,1. But I'll chalk it up to "I shouldn't mess with the code" and that's fine. I'll continue to play around with it because this is a fun distraction from actual work.
Bug report:
Child gender is inverted when child is placed in guest house.
Details:
I modify the code to have only female gender babies.
JavaScript:
<<set _childGender = randomInteger(0,1)>>
# modified to:
<<set _childGender = randomInteger(0)>>
But even with that only being set to 0 (female), I get the following outcome:
Birth:
Guest:
I haven't tracked down where the inversion is happening.
*Edit: Going to test with my modification removed to see if it is truly inverting each time.
Results of 5 tests with modification:
girl -> boy
girl -> boy
girl -> boy
girl -> boy
girl -> boy
Results of 5 tests with clean index.html no modification:
boy -> boy
boy-> boy
boy-> boy
girl -> girl
girl -> girl
So not a bug with unmodified code. I'm still curious what is being introduced when it's only ever set to 0, not 0,1. But I'll chalk it up to "I shouldn't mess with the code" and that's fine. I'll continue to play around with it because this is a fun distraction from actual work.
Last edited: