• subscribe
June 29, 2009 12:00 AM

Logic Puzzle – Dice Substitute

SQL Server Pro
InstantDoc ID #102380

My wife and I like to play backgammon. Recently we sat in a pub in the UK and wanted to play, but didn’t have the equipment. We figured that it shouldn’t be impossible to improvise a decent backgammon game with materials that are readily available to an average person sitting in a pub. The materials we ended up using were: paper, a pen, the pub menu, and coins. We drew the backgammon board on a sheet of paper, using the pub menu as a substitute for a ruler. As playing pieces we used small pieces of paper with an x symbol for one player and an o symbol for the other. Figure 1 shows the actual backgammon board we used.

We decided to use coins as substitute for the dice, but ran into a logical puzzle—what system based on coins to use that will provide an adequate alternative to dice? We wanted a system that:

  1. Has six different possible states that would represent for us the numbers 1 through 6.
  2. In each round, produces a random state with the same probability for each state to be chosen.

Can you think of a system that meets the puzzle’s requirements? It doesn’t have to incorporate exactly three coins as is seen in Figure 1, but it does have to meet both requirements presented above. BTW, if you can think of a system that would substitute dice without coins, rather with other readily available items to an average person in a pub, I’d be most interested to hear your idea.

Cheers,
BG



ARTICLE TOOLS

Comments
  • Valentino
    3 years ago
    Nov 15, 2009

    I'm reading SQL Server Mag on the train telecommuting to/from work and last Friday I came across your puzzle. So here's my solution (I don't think I saw it above although I didn't read everything 100%).

    Throw 5 coins. Result = [number of heads] + 1.
    Or, if you don't have 5 coins, throw 1 coin 5 times.

    BTW: it's fun to try to find a solution for this kind of puzzle on the train, helps to pass the time faster!

    Regards,
    Valentino.

  • Ronald
    3 years ago
    Oct 30, 2009

    You should be able to find some cork from a wine bottle in a pub. Carve it up and put the numbers on it.

  • Jamie
    3 years ago
    Jul 31, 2009

    UK pub? Order a ploughman's lunch and write 1-6 on a cube of cheddar.
    Jamie (Isle of Man)

  • Joe
    3 years ago
    Jul 02, 2009

    You are in a British pub, so they will have a set of 6-6 dominoes behind the bar. Pull out the blanks, discard the double. Throw the titles in a hat and draw with replacement to simulate dice. Even better, get two sets of dominoes and pull out 36 tiles to simulate the dice throws.

    You are in a British pub, so they will have sugar cubes for tea or beef cubes for soup. Find a way to spot them and then eat them when the game is over.

    [Reply:

    Those pubs that have games like dominoes to entertain the audience usually also have backgammon, or at list some game with dice. :)

    Itzik]

  • BEN
    3 years ago
    Jul 01, 2009

    1)
    write the numbers 1-6 on small squares of paper, fold and place in a cup.
    repeat for a second dice.
    close your eyes and select.

    2)
    download a dice application for your mobile phone. (or download backgammon for it)

    3) still working on it...

    [Reply:

    Regarding 1, same idea as my wife suggested. :) I preferred a solution based on coins.

    Regarding 2, nice idea, assuming you carry a cell phone with you. I may be unusual in this sense, but I don't carry a cell phone with me while traveling (which is most of the time). How do you think I managed to write three books about SQL Server 2008 in my spare time? ;)

    Cheers,
    Itzik]

You must log on before posting a comment.

Are you a new visitor? Register Here
  • SP1?
    I know there is a SP1 for SQL 2008 R2 available....and there is a "feature pack" as well... ...
  • SQL database mirroring
    I have SQL Server 2008 R2 Enterprise 64bit on Windows 2008 R2 Enterprise 64bit.  Each SQL Server has...
  • Dell Compellent Disk Drive
    Does anybody has experience with Dell Compellent Disk Drive? Basically, this system manages all disk...
  • Sql server performance tuning
    I need to find a tool that help me to optimize sql server,queries,improve the performance and solve ...