Tractat.usIain | About | Help | FAQ | Special pages | Log in
n. handling , management, treatment.
Printable version | Disclaimers | Privacy policy

Bridge:How the bridge bidding is formatted

From Tractatus

Contents

Making suits

When discussing cards, it helps a lot to be able to make the suits. So, I defined a template for each suit:

Describing a single hand

Sometimes you need to talk about a particular bridge hand, for example: ♠AKQJ T98 765 ♥432. Typing out each suit is a drag, so I made a parser hook for the whole hand. If a suit is missing, then make sure to leave the spot for that suit blank.

A whole deal

I implemented an extension, which processed the <bridge>...</bridge> tag. You can use it to format a deal:

Code

<bridge>
    <deal format="full">
    <title>Slam?</title>
    <hand position="North" name="Sheila" format="block">
      <spades>86</spades>
      <hearts>32</hearts>
      <diamonds>82</diamonds>
      <clubs>K985432</clubs>
    </hand>
    <hand position="East" name="Gabor" format="block">
      <spades>AQJ32</spades>
      <hearts>QJ96</hearts>
      <diamonds>Q96</diamonds>
      <clubs>A</clubs>
    </hand>
    <hand position="South" name="?" format="block">
      <spades>T975</spades>
      <hearts>T8754</hearts>
      <diamonds>J4</diamonds>
      <clubs>Q7</clubs>
    </hand>
    <hand position="West" name="Iain" format="block">
      <spades>K4</spades>
      <hearts>AK</hearts>
      <diamonds>AKT753</diamonds>
      <clubs>JT6</clubs>
    </hand>
    </deal>
    <bidding>
        <player name="Gabor Drasny" nickname="Gabor" position="East"/>
        <player name="?" nickname="?" position="South"/>
        <player name="Iain Keddie" nickname="Iain" position="West"/>
        <player name="Sheila ?" nickname="Sheila" position="North"/>
        <round>
          <call>1<S/></call><call><P/></call><call>2<D/></call><call>3<C/></call>
        </round>
        <round>
          <call>3<H/></call><call><P/></call><call>4<C/>(1)</call><call><P/></call>
        </round>
        <round>
          <call>4<S/></call><call><P/></call><call>6<S/>(2)</call><call><P/></call>
        </round>
        <round>    
         <call><P/></call><call><P/></call>
        </round>
    </bidding>
</bridge>

Result

Slam?
Sheila♠863282♣K985432
Iain♠K4AKAKT753♣JT6
N
WE
S
Gabor♠AQJ32QJ96Q96♣A
?♠T975T8754J4♣Q7
EastSouthWestNorth
Gabor?IainSheila
1♠Pass23♣
3Pass4♣(1)Pass
4♠Pass6♠(2)Pass
PassPass


An auction

The bridge extension can also be used to format a bidding table.

Code

Here is an extensive description of the builds following Stayman.

<bridge>
<auction>
  <call>1<NT/></call>
  <comment> 15-17 hcp, balanced.</comment>
</auction>
<auction>
  <call>2<C/></call>
  <comment>Stayman. Do you have a four card major? </comment>
  <auction>
    <call>2<D/></call>
    <comment>No 4 card majors.</comment>
    <auction>
      <call>pass</call>
      <comment>Weak, short <C/>. (a) </comment>
    </auction>
    <auction>
      <call>2<H/></call>
      <comment>Weak with 2 majors of equal length 4-4, 5-5. (b)</comment>
    </auction>
    <auction>
      <call>2<S/></call>
      <comment>GI with 5<S/> (!) (f) </comment>
    </auction>
    <auction>
      <call>2<NT/></call>
      <comment> (c), (d), (e).</comment>
    </auction>
    <auction>
      <call>3<C/><D/></call>
      <comment>(i)</comment>
      <auction>
	<call>3<H/><S/></call>
	<comment>good 3 card suit, minor fit, no stopper in other M</comment>
      </auction>
    </auction>
    <auction>
      <call>3<H/><S/></call>
      <comment>(h) This is the 4 card suit, the other major is longer! </comment>
      <auction>
	<call>3<NT/></call>
	<auction>
	  <call>4<D/><H/></call>
	  <comment>Transfer to the 6 card suit, 6-4, SF</comment>
	</auction>
      </auction>
    </auction>
    <auction>
      <call>3<NT/></call>
      <comment>(j) TP. </comment>
    </auction>
    <auction>
      <call>4<C/></call>
      <comment>(j) Gerber</comment>
    </auction>
    <auction>
      <call>4<D/></call>
      <comment>(g) Transfer to <H/> (4<S/>-6<H/>) SI</comment>
    </auction>
    <auction>
      <call>4<H/></call>
      <comment>(g) Transfer to <H/> (4<H/>-6<S/>) SI</comment>
    </auction>
  </auction>
  <auction>
    <call>4<NT/></call>
    <comment>(j) Quantitative, responses: pass or 1430</comment>
  </auction>
  <auction>
    <call>2<H/></call>
    <comment>If there are 4<S/>, too then upper zone.</comment>
    <auction>
      <call>pass</call>
      <comment>(a),(b)</comment>
      <auction>
	<call>2<S/></call>
	<comment>(f) !</comment>
      </auction>
    </auction>
    <auction>
      <call>2<NT/></call>
      <comment>(c),(d)</comment>
      <auction>
	<call>3<S/></call>
	<comment>I have this, too (implies upper zone)</comment>
      </auction>
    </auction>
    <auction>
      <call>3<C/><D/></call>
      <comment>(i) 5 card suit + 4\u2660 GF or SI</comment>
      <auction>
	<call>3<H/></call>
	<comment>support in the minor, if SI, accepts it</comment>
      </auction>
      <auction>
	<call>3<S/></call>
	<comment>4 card <S/> support, accepts if SI</comment>
      </auction>
      <auction>
	<call>3<NT/>,4<S/></call>
	<comment>TP</comment>
      </auction>
      <auction>
	<call>5<C/><D/></call>
	<comment>TP</comment>
      </auction>
    </auction>
    <auction>
      <call>3<H/></call>
      <comment>(d),(e)</comment>
    </auction>
    <auction>
      <call>3<S/></call>
      <comment>(h) Smolen (not specified which is the 5 c. major) NOT CB!</comment>
    </auction>
    <auction>
      <call>3<NT/></call>
      <comment>(j) TP</comment>
    </auction>
    <auction>
      <call>4<C/></call>
      <comment>(j) Gerber, 4<S/> </comment>
    </auction>
    <auction>
      <call>4<D/></call>
      <comment>(g), (i), (j) GCB with <H/>'s</comment>
    </auction>
    <auction>
      <call>4<H/></call>
      <comment>(j) TP</comment>
    </auction>
    <auction>
      <call>4<S/></call>
      <comment>(j) Quantitative SI (w/ 4 card <S/>)</comment>
      <auction>
	<call>pass,4<NT/></call>
	<comment>declines, TP.</comment>
      </auction>
      <auction>
	<call>5<C/><D/><H/></call>
	<comment>1430 Blackwood responses.</comment>
      </auction>
    </auction>
    <auction>
      <call>4<NT/></call>
      <comment>(g), (i), (j) RKC with <H/>'s</comment>
    </auction>
  </auction>
  <auction>
    <call>2<S/></call>
    <comment> If there are 4<H/> then lower zone</comment>
    <auction>
      <call>pass</call>
      <comment>(a), (b)</comment>
    </auction>
    <auction>
      <call>2<NT/></call>
      <comment>(c), (d)</comment>
      <auction>
	<call>3<C/><D/></call>
	<comment>(i) 5 card suit, 4<H/>, GF or SI</comment>
	<auction>
	  <call>3<H/></call>
	  <comment>4 card <H/> support, accepts</comment>
	</auction>
	<auction>
	  <call>3<S/></call>
	  <comment>accepts in the minor</comment>
	</auction>
	<auction>
	  <call>3<NT/>, 4<H/></call>
	  <comment>TP</comment>
	</auction>
	<auction>
	  <call>5<C/><D/></call>
	  <comment>TP</comment>
	</auction>
      </auction>
      <auction>
	<call>3<H/></call>
	<comment>(h) molen (not spec. which is the 5 card major)</comment>
      </auction>
      <auction>
	<call>3<S/></call>
	<comment>(d),(e),(f)</comment>
      </auction>
      <auction>
	<call>3<NT/></call>
	<comment>(j) TP</comment>
      </auction>
      <auction>
	<call>4<C/></call>
	<comment>(j) Gerber (w/ 4 card <H/>.</comment>
      </auction>
      <auction>
	<call>4<D/></call>
	<comment>(g),(i),(j) GCB with <S/></comment>
      </auction>
      <auction>
	<call>4<H/></call>
	<comment>(j) Quantitative w/ 4<H/>. !!</comment>
	<auction>
	  <call>pass,4<NT/></call>
	  <comment>declines, TP.</comment>
	</auction>
	<auction>
	  <call>4<S/>, 5<C/><D/><H/></call>
	  <comment>1430 Blackwood responses.</comment>
	</auction>
      </auction>
      <auction>
	<call>4<S/></call>
	<comment>(f), (j). TP.</comment>
      </auction>
      <auction>
	<call>4<NT/></call>
	<comment>(g), (i), (j) RKC with <S/>'s</comment>
      </auction>
    </auction>
  </auction>
</auction>
</bridge>

Result

1NT
15-17 hcp, balanced.
2♣
Stayman. Do you have a four card major?
2
No 4 card majors.
pass
Weak, short ♣. (a)
2
Weak with 2 majors of equal length 4-4, 5-5. (b)
2♠
GI with 5♠ (!) (f)
2NT
(c), (d), (e).
3♣
(i)
3
good 3 card suit, minor fit, no stopper in other M
3
(h) This is the 4 card suit, the other major is longer!
3NT
4
Transfer to the 6 card suit, 6-4, SF
3NT
(j) TP.
4♣
(j) Gerber
4
(g) Transfer to (4♠-6) SI
4
(g) Transfer to (4-6♠) SI
4NT
(j) Quantitative, responses: pass or 1430
2
If there are 4♠, too then upper zone.
pass
(a),(b)
2♠
(f) !
2NT
(c),(d)
3♠
I have this, too (implies upper zone)
3♣
(i) 5 card suit + 4\u2660 GF or SI
3
support in the minor, if SI, accepts it
3♠
4 card ♠ support, accepts if SI
3NT,4♠
TP
5♣
TP
3
(d),(e)
3♠
(h) Smolen (not specified which is the 5 c. major) NOT CB!
3NT
(j) TP
4♣
(j) Gerber, 4♠
4
(g), (i), (j) GCB with 's
4
(j) TP
4♠
(j) Quantitative SI (w/ 4 card ♠)
pass,4NT
declines, TP.
5♣
1430 Blackwood responses.
4NT
(g), (i), (j) RKC with 's
2♠
If there are 4 then lower zone
pass
(a), (b)
2NT
(c), (d)
3♣
(i) 5 card suit, 4, GF or SI
3
4 card support, accepts
3♠
accepts in the minor
3NT, 4
TP
5♣
TP
3
(h) molen (not spec. which is the 5 card major)
3♠
(d),(e),(f)
3NT
(j) TP
4♣
(j) Gerber (w/ 4 card .
4
(g),(i),(j) GCB with ♠
4
(j) Quantitative w/ 4. !!
pass,4NT
declines, TP.
4♠, 5♣
1430 Blackwood responses.
4♠
(f), (j). TP.
4NT
(g), (i), (j) RKC with ♠'s

Retrieved from "http://www.tractat.us/wiki/Bridge:How_the_bridge_bidding_is_formatted"

This page has been accessed 1,571 times. This page was last modified on 18 February 2007, at 21:22. Content is available under Attribution-Noncommercial-Share Alike 2.5 .


Find

Browse
Iain
Current events
Recent changes
Random page
Help
Edit
View source
Editing help
This page
Discuss this page
New section
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
More...