Debian Codegraph @

tests/great88

raw
1 proc problem {id title diagram goal {denomination notrump} {leader south}} {
2 set tricks [dds -diagram $diagram -leader $leader south $denomination]
3 if {$tricks != $goal} {
4 set result FAIL
5 } else {
6 set result PASS
7 }
8 puts "$result: Problem $id ($title) makes $tricks tricks with goal $goal"
9 }
10
11 # Tribe 1 - Eliminations, Endplays of Position
12
13 problem 1 Avoidance {
14 {A987 - A}
15 {Q5 987 -}
16 {64 K2 2}
17 {K2 AQ3 -}
18 } 3 notrump
19
20 problem 2 {The Pitt coup} {
21 {A2 753}
22 {Q9 64 Q}
23 {KJ - 753}
24 {3 Q98 A}
25 } 5 spades
26
27 problem 3 {Gambit and jettison} {
28 {A 873 A}
29 {6 9 K KJ}
30 {- A6 - Q43}
31 {8 Q Q98 -}
32 } 4 spades
33
34 problem 4 {Forced finesse} {
35 {842 32}
36 {A76 K8}
37 {KQ3 AQ}
38 {J9 75 2}
39 } 4 notrump
40
41 problem 5 {Strip setup finesse} {
42 {7 - Q63 A}
43 {9 - JT8 7}
44 {- - K94 65}
45 {5 - - K984}
46 } 4 spades
47
48 problem 6 {Double strip finesse} {
49 {- 86 - A96}
50 {5 A53 - 5}
51 {A 742 - 2}
52 {- 9 8 874}
53 } 4 notrump
54
55 problem 7 {Crossruff strip} {
56 {97 - 72 2}
57 {- Q3 Q KQ}
58 {86 - A8 8}
59 {J J KJ J}
60 } 3 spades
61
62 problem 8 {Jettison entry strip} {
63 {2 32 - A2}
64 {- - J9 KJ6}
65 {- - A43 Q3}
66 {- KQ KQ 8}
67 } 4 spades
68
69 problem 9 {Jettison two-entry strip} {
70 {- A7 - QJ5}
71 {- 65 AK9 -}
72 {J J9 QJ -}
73 {8 K3 - K9}
74 } 4 spades
75
76 problem 10 {Double-entry strip} {
77 {743 A A -}
78 {Q Q Q QJ}
79 {KJ2 - - 32}
80 {A65 K K}
81 } 4 notrump
82
83 problem 11 {Fork strip} {
84 {52 5 5 5}
85 {98 9 9 9}
86 {AQ A 3 A}
87 {K63 K A -}
88 } 4 notrump
89
90 problem 12 {Total fork strip} {
91 {T42 - A 4}
92 {QJ7 - J Q}
93 {K85 8 6 -}
94 {A96 - 3 5}
95 } 3 hearts
96
97 problem 13 {Progressive fork strip} {
98 {Q3 - - KQJ}
99 {KT2 - - 64}
100 {AJ97 J - -}
101 {8654 A - -}
102 } 4 notrump
103
104 problem 14 {Transfer fork strip} {
105 {6 4 - AJ5}
106 {- - 65 Q84}
107 {- - 72 K63}
108 {- Q K4 92}
109 } 4 spades
110
111 problem 15 {Jettison double fork strip} {
112 {- - J T862}
113 {7 8 - A97}
114 {J 642 5 -}
115 {9 953 8 -}
116 } 3 spades
117
118 problem 16 {Repeat-jettison fork strip} {
119 {- A A KJ7}
120 {5 - Q9 AQ}
121 {Q 2 KJ8 -}
122 {J 3 764}
123 } 4 spades
124
125 problem 17 {Two-fork double strip} {
126 {- 8 J7 A9}
127 {- Q7 A8 8}
128 {A A93 6 -}
129 {- 65 Q Q6}
130 } 4 notrump
131
132 problem 18 {Double blocked fork strip} {
133 {- Q9 J95}
134 {- KT73 Q}
135 {9 8 A64}
136 {4 J K73}
137 } 3 spades
138
139 problem 19 {Crossruff or finesse strip} {
140 {T 5 - AT5}
141 {- JT KQ J}
142 {5 A - 432}
143 {- KQ - KQ9}
144 } 4 spades
145
146 problem 20 {Crossruff entry strip} {
147 {3 4 A 32}
148 {- K K KQJ}
149 {54 A - 75}
150 {- 75 98 A}
151 } 4 spades
152
153 problem 21 {Crossruff fork strip} {
154 {A AQ Q A}
155 {- K5 K KQ}
156 {3 32 3 3}
157 {- J9 J J9}
158 } 4 spades
159
160 problem 22 {Crossruff split-fork strip} {
161 {3 Q - KT3}
162 {- A9 - Q75}
163 {4 6 - A94}
164 {- K A J86}
165 } 4 spades
166
167 problem 23 {Entry or fork strip} {
168 {3 72 Q2}
169 {2 J54 J}
170 {- AK3 A7}
171 {- Q98 K9}
172 } 4 notrump
173
174 problem 24 {Jettison-entry fork strip} {
175 {K984 - K -}
176 {AJ - - 876}
177 {- Q65 72 -}
178 {- 98 A65 -}
179 } 3 notrump
180
181 problem 25 {Blocked fork strip or entry} {
182 {KJ3 - K 8}
183 {Q7 - QJ 9}
184 {- J 84 J6}
185 {- 9 9 Q72}
186 } 4 notrump
187
188 problem 26 {Crossruff entry fork strip} {
189 {3 32 - 53}
190 {- - 98754 -}
191 {75 75 - 2}
192 {- 64 6 64}
193 } 4 spades
194
195 # Tribe 2 - Coups, Endplays of Time
196
197 problem 27 {En passant} {
198 {A54 2 - 2}
199 {7 - A7 87}
200 {- 3 32 A3}
201 {98 9 9 9}
202 } 4 spades
203
204 problem 28 {Grand coup} {
205 {- 42 AK A}
206 {K4 - 43 4}
207 {AQ2 - 2 2}
208 {J9 - J9 J}
209 } 5 spades
210
211 problem 29 {Grand coup fork strip} {
212 {876 A - 9}
213 {3 K K KQ}
214 {AJT2 - A -}
215 {KQ9 9 9 -}
216 } 4 spades
217
218 problem 30 {Overruff grand coup} {
219 {Q972 - - Q}
220 {- - K6 K62}
221 {54 4 5 4}
222 {JT8 32 - -}
223 } 4 spades
224
225 problem 31 {Repeating grand coup} {
226 {AK - - QT8}
227 {J9765 - - -}
228 {QT8 A A -}
229 {432 8 8 -}
230 } 5 spades
231
232 problem 32 {Undercut} {
233 {- 4 A65 A}
234 {KQT - K 4}
235 {AJ2 6 4 -}
236 {- A QJ98 -}
237 } 4 spades
238
239 problem 33 {Uppercut} {
240 {Q7 8 J A}
241 {A65 - 2 8}
242 {42 42 4 -}
243 {983 A 9 -}
244 } 2 spades
245
246 problem 34 {Smother play} {
247 {A42 2 - 2}
248 {T9 T9 T -}
249 {QJ87 7 - -}
250 {K653 3 - -}
251 } 4 spades
252
253 problem 35 {Double smother} {
254 {AT3 - AK -}
255 {J6 6 6 6}
256 {K92 A - 4}
257 {Q85 5 5 -}
258 } 5 spades
259
260 # Tribe 3 - Squeezes, Endplays of Mass
261
262 problem 36 {Double squeeze} {
263 {A2 2 - KQ}
264 {KJ - A 86}
265 {3 - 2 A72}
266 {Q9 A - J9}
267 } 5 notrump
268
269 problem 37 {Double squeeze} {
270 {94 - 2 K3}
271 {A5 Q - J8}
272 {Q63 2 - 6}
273 {J - 8 972}
274 } 4 spades
275
276 problem 38 {Double automatic squeeze} {
277 {AQ3 - - K4}
278 {J87 A - 7}
279 {2 2 2 A2}
280 {K96 - A 9}
281 } 5 notrump
282
283 problem 39 {Split squeeze} {
284 {K3 - 74 A}
285 {J - QJ K9}
286 {A2 - A Q2}
287 {Q - - J875}
288 } 5 notrump
289
290 problem 40 {Overtake squeeze} {
291 {A964 - - K}
292 {T8752 - - -}
293 {KQJ K K -}
294 {3 A2 A A}
295 } 4 notrump
296
297 problem 41 {Progressive squeeze} {
298 {3 A3 Q 4}
299 {Q82 - J A}
300 {A7 7 K8 -}
301 {K9 K9 9 -}
302 } 5 notrump
303
304 problem 42 {Transfer repeat squeeze} {
305 {A7 4 6 7}
306 {J9 - 98 Q}
307 {Q8 - A54 -}
308 {K654 - Q -}
309 } 5 notrump
310
311 problem 43 {Three-two squeeze} {
312 {- A4 4 42}
313 {- - A3 863}
314 {7 7 - AQ7}
315 {- K6 K J9}
316 } 5 notrump
317
318 problem 44 {Finesse jettison squeeze} {
319 {K8 - 953 -}
320 {- J JT7 9}
321 {- 9 Q8 63}
322 {Q764 - K -}
323 } 4 notrump
324
325 problem 45 {Progressive jettison squeeze} {
326 {A4 9 A 5}
327 {- 73 764 -}
328 {96 K4 8 -}
329 {QJ - KJ Q}
330 } 4 notrump
331
332 problem 46 {Progressive jettison squeeze or squeeze} {
333 {- A3 A9 Q}
334 {- 75 876 -}
335 {9 86 QJ -}
336 {- Q4 K4 K}
337 } 5 notrump
338
339
340 problem 47 {Trump squeeze} {
341 {KJ84 - - K}
342 {Q65 - - 32}
343 {A73 K K -}
344 {T9 A A A}
345 } 5 spades
346
347 problem 48 {Squeeze or forced finesse} {
348 {KQ KQ J}
349 {9 A K93}
350 {2 3 AQ7}
351 {A8765 - -}
352 } 4 notrump
353
354 problem 49 {Finesse squeeze} {
355 {82 - A9 2}
356 {- 62 8 74}
357 {- 54 Q A6}
358 {- 73 KJ 9}
359 } 5 spades
360
361 # Tribe 4: Compund and Hybrid Endings
362
363 problem 50 {One-way finesse or fork strip} {
364 {KJ - - A62}
365 {AQ9 - J7 -}
366 {853 - K4 -}
367 {- - Q5 QJ5}
368 } 3 notrump
369
370 problem 51 {Forced jettison strip squeeze} {
371 {- A AJ64 -}
372 {8 - Q98 K}
373 {9 Q97 - 7}
374 {J JT86 - -}
375 } 3 spades
376
377 problem 52 {Crossruff strip triple squeeze} {
378 {6 76 - 76}
379 {9 QJ - QJ}
380 {7 K8 Q 8}
381 {- - KJ876 -}
382 } 3 spades
383
384 problem 53 {Forced triple squeeze (with fork strip)} {
385 {9 Q8 - Q7}
386 {- J7 - J64}
387 {A6 9 9 9}
388 {T8 - T T8}
389 } 4 notrump
390
391 problem 54 {Squeeze strip or suitout} {
392 {- 76 A2 2}
393 {- J8 KQ K}
394 {7 AQ5 7 -}
395 {- K94 95 -}
396 } 4 spades
397
398 problem 55 {Triple squeeze forced finesse} {
399 {Q6 3 8 2}
400 {K 82 A 8}
401 {- A4 K AK}
402 {T4 T - T4}
403 } 4 notrump
404
405 problem 56 {Jettison squeeze finesse} {
406 {A K2 K2 -}
407 {42 - - QJ9}
408 {53 - - AK3}
409 {K A A 87}
410 } 4 notrump
411
412 problem 57 {Squeeze or strip squeeze} {
413 {- AQ9 KQ -}
414 {7 KJ AJ -}
415 {K 2 2 JT}
416 {4 - - Q654}
417 } 4 spades
418
419 problem 58 {Triple squeeze scoop strip} {
420 {K874 - - 2}
421 {A65 - - 98}
422 {2 9 9 AK}
423 {QJ Q Q Q}
424 } 4 notrump
425
426 problem 59 {Triple squeeze entry strip} {
427 {A654 K - -}
428 {T987 - - K}
429 {KQJ - K 2}
430 {32 A A A}
431 } 4 notrump
432
433 problem 60 {Jettison triple squeeze entry strip} {
434 {43 2 J A}
435 {K - 98 54}
436 {A - 432 6}
437 {95 9 - K9}
438 } 4 notrump
439
440 problem 61 {Fork squeeze entry strip} {
441 {- A52 - A9}
442 {- J K9 K8}
443 {- K73 Q7 -}
444 {- Q86 - 64}
445 } 4 notrump
446
447 problem 62 {Squeeze finesse} {
448 {K2 9 9 K}
449 {J864 - - J}
450 {A95 - - A2}
451 {Q3 A A Q}
452 } 5 notrump
453
454 problem 63 {Finesse threat 3-2 squeeze} {
455 {2 - K5 A7}
456 {- J8 J97 -}
457 {- 2 AT43 -}
458 {- 9 Q8 J9}
459 } 5 spades
460
461 problem 64 {Hexagon squeeze finesse} {
462 {2 A9 2 2}
463 {K Q Q4 J}
464 {- 2 A9 AK}
465 {A K4 K Q}
466 } 5 notrump
467
468 problem 65 {One-way squeeze scoop finesse} {
469 {KJ2 K - 2}
470 {Q54 3 - 4}
471 {A63 - - AK}
472 {987 A - 3}
473 } 5 notrump
474
475 problem 66 {Automatic squeeze scoop finesse} {
476 {- - T5 A52}
477 {98 - Q76 -}
478 {- 9 K8 K9}
479 {- - 93 T86}
480 } 5 notrump
481
482 problem 67 {Squeeze ruffout} {
483 {A5 - K98 -}
484 {7 - - QJ87}
485 {93 T95 - -}
486 {- KQ QJT -}
487 } 5 spades
488
489 problem 68 {Squeeze overruff} {
490 {Q5 5 - KQ}
491 {K KT 87 -}
492 {- A87 T 9}
493 {- J64 J 5}
494 } 5 clubs
495
496 problem 69 {Repeat-squeeze entry strip} {
497 {2 K4 K K}
498 {AK97 9 - -}
499 {QJ64 8 - -}
500 {8 A2 Q Q}
501 } 2 notrump
502
503 problem 70 {Forced unblock triple-squeeze scoop} {
504 {QJ8 7 7 -}
505 {- 9 J J94}
506 {965 - - Q8}
507 {AK7 - - K7}
508 } 2 notrump
509
510 problem 71 {Squeeze unblock finesse} {
511 {Q5 32 - J}
512 {A64 K9 - -}
513 {K8 AJ - 9}
514 {JT97 - - A}
515 } 3 notrump
516
517 problem 72 {Blocked fork strip} {
518 {- Q7 J92}
519 {- K952 Q}
520 {J 8 A73}
521 {3 J K85}
522 } 3 spades
523
524 problem 73 {En passant mutate} {
525 {86 74 - 8}
526 {AQ 6 76 -}
527 {K AJ QT -}
528 {- Q98 KJ -}
529 } 4 spades
530
531 problem 74 {Repeated trump discard} {
532 {42 QJ9 - -}
533 {KQ8 - QJ -}
534 {AJ63 - - 8}
535 {9 7 976 -}
536 } 4 spades west
537
538 problem 75 {Squeeze scoop ruffout} {
539 {- K9 K AQ}
540 {- A8 - K54}
541 {97 - 9 97}
542 {- QJ Q J6}
543 } 5 spades
544
545 problem 76 {Coup or squeeze} {
546 {864 - - Q9}
547 {- 5 JT K8}
548 {- 7 7 A42}
549 {75 - 6 T7}
550 } 5 spades
551
552 problem 77 {Triple-squeeze ruffout} {
553 {52 - 98 9}
554 {J 2 KQ Q}
555 {A4 - 74 7}
556 {- KQ975 - -}
557 } 4 spades west
558
559 problem 78 {Progressive squeeze jettison scoop} {
560 {5 95 - A7}
561 {- Q8 - JT9}
562 {- J 76 Q3}
563 {9 AT - K8}
564 } 4 notrump
565
566 problem 79 {Double squeeze strip} {
567 {- A97 83 -}
568 {- T86 T9 -}
569 {8 QJ3 - Q}
570 {K5 K54 - -}
571 } 4 notrump
572
573 problem 80 {One-way squeeze or ditto} {
574 {7 Q7 7 7}
575 {- - A6 864}
576 {- J J4 J5}
577 {A 986 5 -}
578 } 4 notrump
579
580 problem 81 {En passant or double squeeze} {
581 {J5 5 - J8}
582 {- - 98 Q74}
583 {3 - J3 K3}
584 {Q9 Q - 96}
585 } 4 spades
586
587 problem 82 {Squeeze entry strip} {
588 {5 Q6 AJ -}
589 {9 J9 K K}
590 {8 - Q54 8}
591 {Q6 - 976 -}
592 } 4 notrump
593
594 problem 83 {Double-squeeze scoop} {
595 {- - 86 AQ6}
596 {- 98 - K84}
597 {J J - 953}
598 {- - JT JT7}
599 } 3 notrump
600
601 problem 84 {Jettison strip mutate} {
602 {- A A K92}
603 {3 J5 - AT}
604 {5 Q6 T8 -}
605 {- K 973 Q}
606 } 4 spades
607
608 problem 85 {Split squeeze entry strip} {
609 {J53 - AQ}
610 {KQ9 - KJ}
611 {82 Q73 -}
612 {- 964 42}
613 } 3 notrump
614
615 problem 86 {Hexagon squeeze finesse} {
616 {- 9 A9 75}
617 {- Q7 Q7 Q}
618 {8 K8 8 8}
619 {- J J6 J6}
620 } 4 notrump
621
622 problem 87 {Endplays in series} {
623 {9 A8 - 87}
624 {T - T9 T9}
625 {- 92 5 A4}
626 {K K765 - -}
627 } 4 notrump
628
629 problem 88 {Contra squeeze} {
630 {- A T43 A}
631 {A2 K J K}
632 {KQJ - K2 -}
633 {- - AQ765 -}
634 } 3 notrump
635