Unfortunately, these questions you ask are ambiguous, and it is the failure to recognize how they are ambiguous that causes the results to seem unexpected. Consider two versions of what led up to the first statement:
Case #1: A father is chosen at random. He is given a slip of paper as he is led onto a stage. The paper says "Pick one of your children. Tell the audience the number of children you have, the chosen child's gender, and the day of the week on which it was born."
Case #2: A father is chosen at random from all fathers who have two children, including one boy born on a Tuesday. He is also ushered onto a stage and given a slip of paper that instructs him to tell the audience the criteria used to select him.
Now shift scenes. You are in the audience when a man is ushered onto the stage. He looks at a slip of paper, thinks a moment, and says "I have two children and one of them is a boy born on Tuesday." What is the probability that he has two boys?
The answer to the question depends on which case applies to the man you listened to. In Case #1, it is 1/2. In case #2, it is 13/27. Your simulation only covered the second case. To get the first, after you have two children, flip a coin to see which one the father will tell about. If it is not a Tuesday Boy, don’t keep that trial even if the other child is a Tuesday Boy. You will find that the 27 cases where you have a Tuesday Boy reduce to 14 (just over half, since one father didn’t need to flip the coin), the 13 where you also have two boys reduces to 7, and the answer is exactly 1/2.
If you simulate the simpler problem, where you don’t worry about the day of the week, the answers are 1/2 and 1/3 for the two cases, respectively. The reason 13/27 seems unintuitive, is because the fact that a Tuesday Boy was REQUIRED in the second case is not intuitively obvious from the statement "one of them is a boy born on Tuesday." In fact, as you point out, the puzzle could equally well be named after either of your two children, which is probably two different names. You choose one, just like the father in case #1, so the better answer to your question is 1/2, not 13/27. It is still ambiguous, but there is no valid reason to assume that case #2 applies.
====================================
Unfortunately, these questions you ask are ambiguous, and it is the failure to recognize how they are ambiguous that causes the results to seem unexpected. Consider two versions of what led up to the first statement:
Case #1: A father is chosen at random. He is given a slip of paper as he is led onto a stage. The paper says "Pick one of your children. Tell the audience the number of children you have, the chosen child's gender, and the day of the week on which it was born."
Case #2: A father is chosen at random from all fathers who have two children, including one boy born on a Tuesday. He is also ushered onto a stage and given a slip of paper that instructs him to tell the audience the criteria used to select him.
Now shift scenes. You are in the audience when a man is ushered onto the stage. He looks at a slip of paper, thinks a moment, and says "I have two children and one of them is a boy born on Tuesday." What is the probability that he has two boys?
The answer to the question depends on which case applies to the man you listened to. In Case #1, it is 1/2. In case #2, it is 13/27. Your simulation only covered the second case. To get the first, after you have two children, flip a coin to see which one the father will tell about. If it is not a Tuesday Boy, don’t keep that trial even if the other child is a Tuesday Boy. You will find that the 27 cases where you have a Tuesday Boy reduce to 14 (just over half, since one father didn’t need to flip the coin), the 13 where you also have two boys reduces to 7, and the answer is exactly 1/2.
If you simulate the simpler problem, where you don’t worry about the day of the week, the answers are 1/2 and 1/3 for the two cases, respectively. The reason 13/27 seems unintuitive, is because the fact that a Tuesday Boy was REQUIRED in the second case is not intuitively obvious from the statement "one of them is a boy born on Tuesday." In fact, as you point out, the puzzle could equally well be named after either of your two children, which is probably two different names. You choose one, just like the father in case #1, so the better answer to your question is 1/2, not 13/27. It is still ambiguous, but there is no valid reason to assume that case #2 applies.