Jump to content
BrainDen.com - Brain Teasers

fabpig

Members
  • Posts

    2423
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by fabpig

  1. fabpig

    Masterword

    backgammon - xoo checkmates - xooo tumultuous - xxoo monopolies - xoo fastidious - xxoooo brightness - xooooo orogeneses - xoo
  2. fabpig

    Masterword

    backgammon - xoo checkmates - xooo tumultuous - xxoo monopolies - xoo fastidious - xxoooo brightness - xooooo
  3. fabpig

    Masterword

    backgammon - xoo checkmates - xooo tumultuous - xxoo monopolies - xoo fastidious - xxoooo methinks you're toying with me.
  4. fabpig

    Masterword

    backgammon - xoo checkmates - xooo tumultuous - xxoo monopolies - xoo
  5. fabpig

    Masterword

    backgammon - xoo checkmates - xooo tumultuous - xxoo
  6. fabpig

    Masterword

    backgammon - xoo
  7. fabpig

    Masterword

    Sorry 'bout the delay.... 10 letters this time.
  8. That nearly went unnoticed. Happy Birthday. If it's any consolation, I'm nearer to 30 than 20, too.

  9. fabpig

    Masterword

    ORIENTEER I'll sell you the program
  10. fabpig

    Masterword

    Me then INTROVERT
  11. fabpig

    Masterword

    Yeah - you ok? Hopefully will be able to spend a bit more time on BD now. ENTERTAIN
  12. fabpig

    Masterword

    Looks like your having a bit of trouble kickstarting this 1 Womby. I'll have a go CONCUBINE
  13. fabpig

    One Up Me

    PS. Welcome to my world
  14. fabpig

    One Up Me

    I'm always right in the (pig)sh
  15. fabpig

    My 2 cents worth: I wrote these in AutoHotKey to try and give my 2 teenage children (both girls!) an idea of how a computer program works. To prove a point I included a breakdown of no. of boys from the same sample. The first is easier to read and understand (I hope), the second is about 25% faster. I apologise if the ;comments are a bit obvious/patronising #NoEnv SendMode Input ;set counters to 0 atleastonegirl = 0, botharegirls = 0, atleastoneboy = 0, bothareboys = 0 loop 10000000 { random, child1, 0, 1 ; randomly assign 1 (girl) or 0 (boy) to child1 random, child2, 0, 1 ; likewise child2 if (child1 or child2 ) ; if either are girls { atleastonegirl ++ ; add one to counter if (child1 and child2) ; if both are girls botharegirls ++ ; add one to counter } if (!child1 or !child2) ; if either are boys { atleastoneboy ++ ; add one to counter if (!child1 and !child2) ; if both are boys bothareboys ++ ; add one to counter } } girlpercent := botharegirls / atleastonegirl * 100 boypercent := bothareboys / atleastoneboy * 100 ; Write to file FILEAPPEND, 10000000 - sample of 2 children families`n %atleastonegirl% - no. who have at least one girl. `n %botharegirls% - no. who have both girls`n`n %girlpercent% percent `n`n`n%A_SPACE%, %A_MYDOCUMENTS%\famsample.txt ; FILEAPPEND, %atleastoneboy% - no. who have at least one boy. `n %bothareboys% - no. who have both boys`n`n %boypercent% percent `n, %A_MYDOCUMENTS%\famsample.txt msgbox Done result: 10000000 - sample of 2 children families 7500583 - no. who have at least one girl. 2501412 - no. who have both girls 33.349568 percent 7498588 - no. who have at least one boy. 2499417 - no. who have both boys 33.331835 percent #NoEnv SendMode Input ;set counters to 0 atleastonegirl = 0, botharegirls = 0, atleastoneboy = 0, bothareboys = 0 loop 10000000 { random, child1, 0, 1 ; randomly assign 1 (girl) or 0 (boy) to child1 random, child2, 0, 1 ; likewise child2 if (child1 or child2) ; if either are girls { atleastonegirl ++ ; add one to counter if (child1 and child2) ; if both are girls botharegirls ++ ; add one to counter else atleastoneboy ++ ; if one is a girl but not both, then one is a boy } else { bothareboys ++ ; if neither are girls, both are boys atleastoneboy ++ ; and at least one is, too! } } girlpercent := botharegirls / atleastonegirl * 100 boypercent := bothareboys / atleastoneboy * 100 ; Write to file FILEAPPEND, 10000000 - sample of 2 children families`n %atleastonegirl% - no. who have at least one girl. `n %botharegirls% - no. who have both girls`n`n %girlpercent% percent `n`n`n%A_SPACE%, %A_MYDOCUMENTS%\famsample.txt ; FILEAPPEND, %atleastoneboy% - no. who have at least one boy. `n %bothareboys% - no. who have both boys`n`n %boypercent% percent `n, %A_MYDOCUMENTS%\famsample.txt msgbox Done result: 10000000 - sample of 2 children families 7500527 - no. who have at least one girl. 2500002 - no. who have both girls 33.331018 percent 7499998 - no. who have at least one boy. 2499473 - no. who have both boys 33.326316 percent
  16. fabpig

    Sorry Peedge, not 1 of them
  17. fabpig

    Not right, Molly, but your answer is disturbingly menacing....... Nor Hammersmith, Hamilton, or Pork Chop Hill, Fort Irwin, CA, Nice tho.. (no they aren't the answers....)
  18. fabpig

    Thanks for the link, Thalia (why didn't I think of that?) Sorry, but no to all (apart from the 3 given) For those who aren't familiar with "Green Glass Doors", click on the link above
  19. fabpig

    It IS at the week end.....the starting end.!
  20. fabpig

    This is going well! Mea culpa....I'll redefine the puzzle as I left it very vague before. It's time for my holidays again and, as usual, I've very little money. So, by applying a couple of criteria (a bit like Green Glass Doors), I managed to wittle down to 12 the number of cities I would visit. Then I thought about it some more, and decided that even 12 was too many, and so applied another rule and split the 12 into 8 "must visit" and 4 "must not visit" cities. Can you apply the rules and complete this table? (I think the first criterion is fairly obvious): "Must visit" "Must not visit" 1. Concord 1. Frankfort 2. Providence 2. 3. Dover 3. 4. 4. 5. 6. 7. 8. So what's needed is /a bit wordy/a bit logic/a bit geography/.
×
×
  • Create New...