Page 1 of 1
diagrams with play included - how?
#1
Posted 2012-February-14, 10:07
OK I give up, how do you post hands with the play included via the "next" button? Is it a link to myhands? If so how do you edit out the player names, or truncate the play? Or is there some other trick? hmmmm
Life is long and beautiful, if bad things happen, good things will follow.
-gwnn
-gwnn
#3
Posted 2012-February-14, 10:19
And if you want to replace the names, you have to edit the URL in a text editor. The parameters to the handviewer.php script contain the full LIN file of the hand, and you should be able to find the player names in it. Edit them into North/South/East/West (or whatever you want) and then paste the modified URL.
#4
Posted 2012-February-14, 10:38
I posted a link to an excel tool I use for doing this. A LINK to that tool is forumlin post
The following post descibes how this can be done without excel to automate the steps insert hand diagram
The following post descibes how this can be done without excel to automate the steps insert hand diagram
--Ben--
#5
Posted 2012-February-14, 11:16
Aha, I looked for stickies, but in the wrong places I guess.
Thanks
Thanks
Life is long and beautiful, if bad things happen, good things will follow.
-gwnn
-gwnn
#6
Posted 2012-February-14, 11:45
I'm sorry, but I have to disagree with the previous answers in this thread - the LIN format is not the only way to include play in the handviewer tool.
The complete documentation for Handviewer's "native" format is at http://www.bridgebas...ools/hvdoc.html
(I put "native" in quotes because funnily enough the LIN format seems to be quicker to load sometimes.)
Let's take a rather silly example. We'll start by using the BBO forums handviewer tool to get us started, though it could be done by hand. Choose "Include North", "Include South" and "Include Bidding". Give North and South their cards, enter the bidding, and click "insert diagram". You will get something like this:
Now, the bit between hv= and the closing bracket contains the commands for the Handviewer program, and 266|200 is the size of the iframe in which it will be loaded. You can also take this same command string and see it in its own browser window like thus:
http://www.bridgebase.com/tools/handviewer.html?pc=n&s=sakqjt98765432hdc&n=shakqjt98765432dc&d=n&v=0&b=1&a=7hp7sp7ndppp
The bit after the question mark in the above URL is identical to the stuff after hv= in the forum code above.
As you can see it is basically a bunch of variables seperated by ampersands. Let's go through them
pc=n I have no idea what this does, pc is undocumented.
s=sakqjt98765432hdc South's hand, containing 13 spades. "hdc" is generated by the forum tool but not necessary.
n=shakqjt98765432dc North's hand, containing 13 hearts.
d=n Dealer North.
v=0 None vulnerable.
b=1 Board number one.
a=7hp7sp7ndppp The auction, 7♥-p-7♠-p-7NT-X-p-p-p. If we wanted to alert double to clarify that it is not a takeout double, we could make it "a=7hp7sp7nd(Penalty)ppp".
Now if we want to add the play, we simply need to add a new variable: p=cas2dah2 or something like that. So our new code looks like this:
However, if you use this, you will find it a bit small. Since HV adds an empty East and West hand whenever we include the play, we need to resize the iframe. My preferred size is 640x480, so:
Et voilà! Here's how it looks like:
The complete documentation for Handviewer's "native" format is at http://www.bridgebas...ools/hvdoc.html
(I put "native" in quotes because funnily enough the LIN format seems to be quicker to load sometimes.)
Let's take a rather silly example. We'll start by using the BBO forums handviewer tool to get us started, though it could be done by hand. Choose "Include North", "Include South" and "Include Bidding". Give North and South their cards, enter the bidding, and click "insert diagram". You will get something like this:
[hv=pc=n&s=sakqjt98765432hdc&n=shakqjt98765432dc&d=n&v=0&b=1&a=7hp7sp7ndppp]266|200[/hv]
Now, the bit between hv= and the closing bracket contains the commands for the Handviewer program, and 266|200 is the size of the iframe in which it will be loaded. You can also take this same command string and see it in its own browser window like thus:
http://www.bridgebase.com/tools/handviewer.html?pc=n&s=sakqjt98765432hdc&n=shakqjt98765432dc&d=n&v=0&b=1&a=7hp7sp7ndppp
The bit after the question mark in the above URL is identical to the stuff after hv= in the forum code above.
As you can see it is basically a bunch of variables seperated by ampersands. Let's go through them
pc=n I have no idea what this does, pc is undocumented.
s=sakqjt98765432hdc South's hand, containing 13 spades. "hdc" is generated by the forum tool but not necessary.
n=shakqjt98765432dc North's hand, containing 13 hearts.
d=n Dealer North.
v=0 None vulnerable.
b=1 Board number one.
a=7hp7sp7ndppp The auction, 7♥-p-7♠-p-7NT-X-p-p-p. If we wanted to alert double to clarify that it is not a takeout double, we could make it "a=7hp7sp7nd(Penalty)ppp".
Now if we want to add the play, we simply need to add a new variable: p=cas2dah2 or something like that. So our new code looks like this:
[hv=pc=n&s=sakqjt98765432hdc&n=shakqjt98765432dc&d=n&v=0&b=1&a=7hp7sp7ndppp&p=cas2dah2]266|200[/hv]
However, if you use this, you will find it a bit small. Since HV adds an empty East and West hand whenever we include the play, we need to resize the iframe. My preferred size is 640x480, so:
[hv=pc=n&s=sakqjt98765432hdc&n=shakqjt98765432dc&d=n&v=0&b=1&a=7hp7sp7ndppp&p=cas2dah2]640|480[/hv]
Et voilà! Here's how it looks like:
"One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision"
-- Bertrand Russell
-- Bertrand Russell
#7
Posted 2012-February-14, 11:55
Thank you MGoetze.
Andy Bowles
You do not really treat bridge players as your customers, do you? - Bluejak, to Pran.
You do not really treat bridge players as your customers, do you? - Bluejak, to Pran.
#8
Posted 2012-February-14, 12:12
Wow! What about pinning this thread so we don't lose mgoetze's pearls of wisdom?
#10
Posted 2012-February-14, 14:14
While I'm at it, here's how I post hands I played on BBO. Reviewing the hand record in the new (Flash) version of BBO, I simply click on Options -> Export Deal -> Handviewer Link. This will give me a URL such as
http://tinyurl.com/7z7qfjw
I open this in a browser and get redirected to a URL such as
http://www.bridgebase.com/tools/handviewer.html?sn=mgoetze&s=SAQ8HT4DKQJT87C82&wn=Robot&w=S7653HA632D9CKJ65&nn=Robot&n=SK94H87D64CAQT743&en=Robot&e=SJT2HKQJ95DA532C9&d=e&v=n&b=2&a=1H(Major%20suit%20opening%20--%205+%20H%3B%2011-21%20HCP%3B%2012-22%20total%20points)2D(Two-level%20overcall%20--%205+%20D%3B%2010+%20HCP%3B%2011-)2H(Free%20major%20raise%20--%203+%20H%3B%206-10%20total%20points)PPD(3+%20C%3B%205+%20D%3B%203+%20S%3B%2014-18%20total%20points)3C(3+%20C%3B%203+%20H%3B%2010+%20HCP%3B%202-11%208421%20HCP%20in%20C%3B%2010-%20total%20points)4C(5+%20C%3B%208+%20HCP%3B%209%20total%20points)PPD(3+%20H%3B%2010+%20HCP%3B%20biddable%20C%3B%202-11%208421%20HCP%20in%20C%3B%2010-%20total%20points)PP4D(Cue%20bid%20--%203+%20C%3B%205+%20D%3B%203+%20S%3B%2014-18%20total)D(2+%20D%3B%203+%20H%3B%2010+%20HCP%3B%20biddable%20C%3B%202-11%208421%20HCP%20in%20C%3B%2010-%20total%20points)PPP&p=S3S4STSADKD9D4D5DQH6D6D2DJS5C3DAHKH4H2H7H5HTHAH8H3C4HJD7DTS6C7D3C2C5CQC9S9S2SQS7D8C6CTSJC8CKCAHQSKH9S8CJ
This can again easily be converted to forum code like so:
Click on the hand to see me get 100% of the matchpoints for playing in a doubled "cue bid".
If I were ashamed of the hand I could of course replace "sn=mgoetze" with "sn=someone_else".
http://tinyurl.com/7z7qfjw
I open this in a browser and get redirected to a URL such as
http://www.bridgebase.com/tools/handviewer.html?sn=mgoetze&s=SAQ8HT4DKQJT87C82&wn=Robot&w=S7653HA632D9CKJ65&nn=Robot&n=SK94H87D64CAQT743&en=Robot&e=SJT2HKQJ95DA532C9&d=e&v=n&b=2&a=1H(Major%20suit%20opening%20--%205+%20H%3B%2011-21%20HCP%3B%2012-22%20total%20points)2D(Two-level%20overcall%20--%205+%20D%3B%2010+%20HCP%3B%2011-)2H(Free%20major%20raise%20--%203+%20H%3B%206-10%20total%20points)PPD(3+%20C%3B%205+%20D%3B%203+%20S%3B%2014-18%20total%20points)3C(3+%20C%3B%203+%20H%3B%2010+%20HCP%3B%202-11%208421%20HCP%20in%20C%3B%2010-%20total%20points)4C(5+%20C%3B%208+%20HCP%3B%209%20total%20points)PPD(3+%20H%3B%2010+%20HCP%3B%20biddable%20C%3B%202-11%208421%20HCP%20in%20C%3B%2010-%20total%20points)PP4D(Cue%20bid%20--%203+%20C%3B%205+%20D%3B%203+%20S%3B%2014-18%20total)D(2+%20D%3B%203+%20H%3B%2010+%20HCP%3B%20biddable%20C%3B%202-11%208421%20HCP%20in%20C%3B%2010-%20total%20points)PPP&p=S3S4STSADKD9D4D5DQH6D6D2DJS5C3DAHKH4H2H7H5HTHAH8H3C4HJD7DTS6C7D3C2C5CQC9S9S2SQS7D8C6CTSJC8CKCAHQSKH9S8CJ
This can again easily be converted to forum code like so:
[hv=sn=mgoetze&s=SAQ8HT4DKQJT87C82&wn=Robot&w=S7653HA632D9CKJ65&nn=Robot&n=SK94H87D64CAQT743&en=Robot&e=SJT2HKQJ95DA532C9&d=e&v=n&b=2&a=1H(Major%20suit%20opening%20--%205+%20H%3B%2011-21%20HCP%3B%2012-22%20total%20points)2D(Two-level%20overcall%20--%205+%20D%3B%2010+%20HCP%3B%2011-)2H(Free%20major%20raise%20--%203+%20H%3B%206-10%20total%20points)PPD(3+%20C%3B%205+%20D%3B%203+%20S%3B%2014-18%20total%20points)3C(3+%20C%3B%203+%20H%3B%2010+%20HCP%3B%202-11%208421%20HCP%20in%20C%3B%2010-%20total%20points)4C(5+%20C%3B%208+%20HCP%3B%209%20total%20points)PPD(3+%20H%3B%2010+%20HCP%3B%20biddable%20C%3B%202-11%208421%20HCP%20in%20C%3B%2010-%20total%20points)PP4D(Cue%20bid%20--%203+%20C%3B%205+%20D%3B%203+%20S%3B%2014-18%20total)D(2+%20D%3B%203+%20H%3B%2010+%20HCP%3B%20biddable%20C%3B%202-11%208421%20HCP%20in%20C%3B%2010-%20total%20points)PPP&p=S3S4STSADKD9D4D5DQH6D6D2DJS5C3DAHKH4H2H7H5HTHAH8H3C4HJD7DTS6C7D3C2C5CQC9S9S2SQS7D8C6CTSJC8CKCAHQSKH9S8CJ]640|480[/hv]
Click on the hand to see me get 100% of the matchpoints for playing in a doubled "cue bid".
If I were ashamed of the hand I could of course replace "sn=mgoetze" with "sn=someone_else".
"One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision"
-- Bertrand Russell
-- Bertrand Russell
Share this topic:
Page 1 of 1

Help











