diagrams with play included - how?
#1
Posted 2012-February-14, 10:07
-gwnn
#3
Posted 2012-February-14, 10:19
#4
Posted 2012-February-14, 10:38
The following post descibes how this can be done without excel to automate the steps insert hand diagram
#5
Posted 2012-February-14, 11:16
Thanks
-gwnn
#6
Posted 2012-February-14, 11:45
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:
-- Bertrand Russell
#7
Posted 2012-February-14, 11:55
#8
Posted 2012-February-14, 12:12
#10
Posted 2012-February-14, 14:14
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".
-- Bertrand Russell
#11
Posted 2012-October-04, 13:07
Currently, if you just type in the movie link from myhands:
http://www.bridgebase.com/tools/handviewer.html?myhand=M-6517588-1349355901
into a post you get this broken diagram. I think in part because the above URL is unable to fetch anything, gets "file not found". Can this get fixed?
Ideally just pasting in the movie link from myhands would show a diagram in the forums without the user having to do anything special.
#12
Posted 2012-October-22, 23:46
#13
Posted 2012-October-23, 08:07
#14
Posted 2013-January-08, 12:22
Stephen Tu, on 2012-October-04, 13:07, said:
Currently, if you just type in the movie link from myhands:
http://www.bridgebase.com/tools/handviewer.html?myhand=M-6517588-1349355901
into a post you get this broken diagram. I think in part because the above URL is unable to fetch anything, gets "file not found". Can this get fixed?
Ideally just pasting in the movie link from myhands would show a diagram in the forums without the user having to do anything special.
Stephen had mailed BBradley couple of weaks ago about this way of posting hands from my hands on bbo, this is by far the easiest and the
arguments for adjusting the size of the paost are important also...I believe its the HV argument for size of post.
what I was wondering about since its a link to data in my hands does the post eventually time out since the clean up data on my hands after a period of time?
#16
Posted 2013-October-31, 00:40
sn=1eyedjack&wn=Robot&nn=Robot&en=Robot
then I just copy and paste the string into the hand when posting GIB bugs
Psyche (pron. sahy-kee): The human soul, spirit or mind (derived, personification thereof, beloved of Eros, Greek myth).
Masterminding (pron. mstr-mnding) tr. v. - Any bid made by bridge player with which partner disagrees.
"Gentlemen, when the barrage lifts." 9th battalion, King's own Yorkshire light infantry,
2000 years earlier: "morituri te salutant"
"I will be with you, whatever". Blair to Bush, precursor to invasion of Iraq
#17
Posted 2013-November-02, 02:08
I found that when I exported to handviewer link it came up with an abbreviated link. You then have to block/copy/paste that link into a browser then the full link gets expanded into the URL bar.
I found that copying that (expanded) link to the clipboard and then pasting it into a new post window did not work because it posted it as a hyperlink rather than a text string.
I got around that by pasting it instead into a notepad file, then copying the notepad content (remember to turn off word wrap) and then it worked OK. It may be something to do with my browser (IE).There is probably a quicker way to achieve it.
Psyche (pron. sahy-kee): The human soul, spirit or mind (derived, personification thereof, beloved of Eros, Greek myth).
Masterminding (pron. mstr-mnding) tr. v. - Any bid made by bridge player with which partner disagrees.
"Gentlemen, when the barrage lifts." 9th battalion, King's own Yorkshire light infantry,
2000 years earlier: "morituri te salutant"
"I will be with you, whatever". Blair to Bush, precursor to invasion of Iraq
#18
Posted 2013-November-02, 10:04
In case it isn't clear from above, "edit" means:
(1)Replace "http://www.bridgebase...?" at the beginning with "[hv=", then
(2)add "] 400 | 300 [ / hv ]" (with the blank spaces removed) to the end.
btw: please stop using 640|480 as the size; it's way too big. Standard is 400|300, although I personally prefer a slightly smaller 360|270.
#19
Posted 2013-November-05, 02:38
I don;'t go to MyHands directly for the hands, but use the export hand feature in the flash version.
Psyche (pron. sahy-kee): The human soul, spirit or mind (derived, personification thereof, beloved of Eros, Greek myth).
Masterminding (pron. mstr-mnding) tr. v. - Any bid made by bridge player with which partner disagrees.
"Gentlemen, when the barrage lifts." 9th battalion, King's own Yorkshire light infantry,
2000 years earlier: "morituri te salutant"
"I will be with you, whatever". Blair to Bush, precursor to invasion of Iraq
#20
Posted 2013-December-24, 16:16
Bbradley62, on 2013-November-02, 10:04, said:
In case it isn't clear from above, "edit" means:
(1)Replace "http://www.bridgebase...?" at the beginning with "[hv=", then
(2)add "] 400 | 300 [ / hv ]" (with the blank spaces removed) to the end.
btw: please stop using 640|480 as the size; it's way too big. Standard is 400|300, although I personally prefer a slightly smaller 360|270.
I can't get this to work consistently. Any help out there?
I can post hand fine when starting from the flash interface, but when I access a hand from the MyHands webpage I sometimes get a link which includes the full details, such as
Quote
and I am fine when that happens.
But on occasion the only link that I pick up from MyHands is in the format:
Quote
When I get that, how do I get it to convert to the full hand history format?
Psyche (pron. sahy-kee): The human soul, spirit or mind (derived, personification thereof, beloved of Eros, Greek myth).
Masterminding (pron. mstr-mnding) tr. v. - Any bid made by bridge player with which partner disagrees.
"Gentlemen, when the barrage lifts." 9th battalion, King's own Yorkshire light infantry,
2000 years earlier: "morituri te salutant"
"I will be with you, whatever". Blair to Bush, precursor to invasion of Iraq