summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/onedown/examples/ExpertQuiz.tex
blob: ad52dc9b29ded3a626b40686705fe7d8c158b39c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
\documentclass[onedown-examples]{subfiles}
\begin{document}
\iffalse
\newgame\setdefaults{bidfirst=W}
\dealer[\east]\vulner[\eastwest]
\hand!{Q952}{K32}{765}{AQ7}

\begin{bidding}(\explainit{gameforcing}
 \explainit{natural, 6-card ab ab ab ab ab ab})%
  &    & 2D\markit & 2H\markit \\
p & 3H & 4D        & p \\
? \\
\end{bidding}

\makeatletter
   :\usebox\ODw@BidBox:
\makeatother



\begin{biddingpair}(\explainit{game forcing}
 \explainit{natural, 6-card})%
   2D\markit & 2H\markit \\
   3H        & 4D        \\
? \\
\end{biddingpair}

\makeatletter
   :\usebox\ODw@BidBox:
\makeatother
\fi
\vfill
A special feature of \OneDown is the so called |expertquiz|. It essentially
displays a hand with a (partial) bidding sequence. The reader has to guess
the best next bid with respect to the hand and the bidding so far. The
different answers are rewarded with points.

Observe the token '\textbf{-}' in |\hand-| and |\begin{bidding}-| that
suppresses the output.

With the optional argument we add some extra information to the quiz.
\vfill
\begin{HBox}{expertquiz \hfill File: \FileName}
\newgame\setdefaults{bidfirst=W}
\dealer[\east]\vulner[\eastwest]
\hand!-{Q952}{K32}{765}{AQ7} 
\begin{bidding}-(\explainit{gameforcing}
 \explainit{natural, 6-card})%
  &    & 2D\markit & 2H\markit \\
p & 3H & 4D        & p \\
? \\
\end{bidding}
\expertquiz[Team: \dealertext, \vulnertext]{%
  4\He= 10, 4\Sp= 7,
  6\Di= 4,
  4\NT/5\NT= 3, 5\Di=~1
}
\end{HBox}
\vfill
Here we show the same quiz, but the layout resembles the one used by the
DBV\footnote{German Bridge League} in their monthly, called \emph{Bridge
Magazin}. We get this special layout by using the token '\textbf{!}'. Of
course we set it in the German language.
\vfill
\begin{HBox}{expert quiz a la DBV\hfill File: \FileName}
\begin{otherlanguage}{german}
\expertquiz![Team: \dealertext, \vulnertext]{%
  4\He= 10, 4\Sp= 7,
  6\Di= 4,
  4\NT/5\NT= 3, 5\Di= 1
}
\end{otherlanguage}
\end{HBox}
\vfill
\end{document}
\endinput