Using handTEMPLATE.htm Today


I recently visited, via Internet Explorer, the webpage bottom at:
http://unit192.ca/
and read of a recent big local youth victory further described at:
http://www.bridgexperts.com/
On the latter page there is a dark link labelled "Tournament Pages"
It opened on 2nd click, sending me to:
http://www.bridgexperts.com/Tournament.htm
From there the "Sample Hand" link on 2nd clicking sent me to:
http://www.bridgexperts.com/2006-hand-1.htm

The using there of character set suit symbols might have had the appeal of avoiding image files and directories, but they rendered in my Firefox as other than suit symbols.
Editing an offline version of
www.eastontario.com/handStories/entry.htm and I referenced
http://www.eastontario.com/handStories/handTEMPLATE.htm#1z1101231022203013301112022302321013103333212302001203

There I inserted the auction from the story at
http://www.bridgexperts.com/2006-hand-1.htm
into the Internet Explorer address bar after the "z" to arrive at:
http://www.eastontario.com/handStories/handTEMPLATE.htm#1zppp1dp1sp2sppp1101231022203013301112022302321013103333212302001203
From that new page I clicked the "To Declarer South" link and a new window opened with the deal and auction rotated to Make Declarer South:
http://www.eastontario.com/handStories/handTEMPLATE.htm#78zppp1dp1sp2sppp0020310233321201120003233123130201021111303123220321

Next, clicking the "Show Code" button generated and highlighted simple html code that was saved and uploaded to:
http://eastontario.com/handStories/78zppp1dp1sp2sppp0020310233321201120003233123130201021111303123220321.htm

I had a look at board 2 and was struck with an idea.
It's easier to simply edit what follows a link root ("http://www.eastontario.com/handStories/handTEMPLATE.htm#") to describe the deal and the auction!
From the previous paragraph, the rest of the link is:
78zppp1dp1sp2sppp0020310233321201120003233123130201021111303123220321
"78" describes a deal number (the deal was rotated and translated to make declarer south, as is standard in bridge columns)
The "z" following that is just a marker to separate that board number from the auction.
The "ppp1dp1sp2sppp" is the auction
The 52 digit number "0020310233321201120003233123130201021111303123220321" represents the deal.
The value of each of those 52 digits, 4 in total, ranging from 0 to 3, signifies the location of a particular card.
There are 4 hands in a deal , hence 4 different hands for a card to be in: North, West, East and South

We read top to bottom, left to right usually.
North is topmost, West ties with East for sharing a line, winning on tie breaking 'leftness'. South is last read.
Here the numbers 0, 1, 2 and 3 are a sort of "reverse algebra" for North, West, East and South, respectively.
If a card belongs in the North hand, it's corresponding place is set to "0".
If a card belongs in the West hand, the place is set to "1".
If belonging to East, the place is set "2"
Lowest South is last (set "3").

In that 52 digit line, the first digit is "0".
It suggests that the first card is dealt to North.
If the number had been instead "1", the first card would have been dealt to West (if "2" to East, if "3" to South).

By convention, that first position in the 52 digit string of base 4 numbers marks the position of the highest ranking suit's highest ranking card, the A.
The next 12 digits of that 52 digit string correspond to the remainder of the spade suit, in declining rank, from K down to 2.
The K, the 2nd position, was held by North, properly represented as "0".
Here's the deck's order re: the 52 digit string: AKQJT98765432AKQJT98765432AKQJT98765432AKQJT98765432
The 14th digit of "0020310233321201120003233123130201021111303123220321" suggests the place of the A, the first 13 spaces having been spades.
It's held not by North ("0" )...Not by West "1"...but simply East "2".
The 16th digit suggests the place of the Q (two 16-14= 2 ranks down from the A), in this example West.

Board 2 Diagram and Auction
Looking at the board 2 diagram and auction again, I set my fingers on the numpad and co-ordinated with eye to type in numbers from "0" to "3".
I saw the A was in the East Hand. (N=0, W=1, E=2) and typed in "2". Continuing,
2111122101201 got me through the spades. Hearts were next and the A was in the West hand (N=0, W=1) starting off the full suit
1232300100223 and then diamonds from the A:
3330203021103 and then clubs from the A:
2020330321133
I concatenated those 52 digits in that order of suits to reach::
2111122101201123230010022333302030211032020330321133
I appended first to the link root http://www.eastontario.com/handStories/handTEMPLATE.htm#
the board number "2", and then delimiter "z", and got this:
http://www.eastontario.com/handStories/handTEMPLATE.htm#2z2111122101201123230010022333302030211032020330321133 which tested fine.

That link could be saved/emailed to describe the bridge deal.
However, the example auction on that page might mislead.
The bridgeexperts board 2 page suggested a North opening "Pass Out Of Turn" , without which would have had auction:
1c1d1sp2sppp               (redouble= "r"    double="x"    and    footnote="f" and    heart="h", etc.)
Inserting that right of the previous line's "z", and left of the 52 digit base 4 string, resulted in:
http://www.eastontario.com/handStories/handTEMPLATE.htm#2z1C1D1Sp2sppp2111122101201123230010022333302030211032020330321133

Bridge column standard has declarer appearing "always" South.
If, for example, declarer ends up being West, hands are rotated +270 degrees (or -90 degrees) to effect Declarer South. Of course the auction is similarly translated, as much be the board number.
Clicking on the "To Declarer South" link effects that rotation (board number necessarily changes also).
The URL for that is:
http://www.eastontario.com/handStories/handTEMPLATE.htm#89z1C1D1Sp2sppp0333300313013302021131100222210121033120101221203322

Currently handTEMPLATE.htm is compatible with at least current Internet Explorer 6, a beta 7, and at least Firefox 1.5 (those accounting presently for almost 90% of browsers used today)
It fails in at least some versions of Navigator.

In order to please all, simple javascript-free html can be copied from the handTEMPLATE.htm form code box (after clicking "SHOW CODE") and saved and posted-online (or emailed).

Suggestions/Comments