File: Descr.evaluation

package info (click to toggle)
dealer 20161012-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,148 kB
  • sloc: ansic: 2,436; yacc: 630; perl: 400; makefile: 139; sh: 5
file content (97 lines) | stat: -rw-r--r-- 2,842 bytes parent folder | download | duplicates (7)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Test script for verifying each of the point count
# mechanisms; useful for debugging the analyze function

produce 1

action
	print ( north ),
	average "Losers"	loser(north),
	average "S "		loser(north, spades),
	average "H "		loser(north, hearts),
	average "D "		loser(north, diamonds),
	average "C "		loser(north, clubs),
	
	average "HCP"		hcp(north),
	average "S "		hcp(north, spades),
	average "H "		hcp(north, hearts),
	average "D "		hcp(north, diamonds),
	average "C "		hcp(north, clubs),
	
	average "Control"	control(north),
	average "S "		control(north, spades),
	average "H "		control(north, hearts),
	average "D "		control(north, diamonds),
	average "C "		control(north, clubs),

	print ( north ),
	average "C4"		cccc(north),
	average "S "		quality(north, spades),
	average "H "		quality(north, hearts),
	average "D "		quality(north, diamonds),
	average "C "		quality(north, clubs),

	average "tens"		tens(north),
	average "S "		tens(north, spades),
	average "H "		tens(north, hearts),
	average "D "		tens(north, diamonds),
	average "C "		tens(north, clubs),

	average "jacks"		jacks(north),
	average "S "		jacks(north, spades),
	average "H "		jacks(north, hearts),
	average "D "		jacks(north, diamonds),
	average "C "		jacks(north, clubs),

	print ( north ),
	average "queens"	queens(north),
	average "S "		queens(north, spades),
	average "H "		queens(north, hearts),
	average "D "		queens(north, diamonds),
	average "C "		queens(north, clubs),

	average "kings"		kings(north),
	average "S "		kings(north, spades),
	average "H "		kings(north, hearts),
	average "D "		kings(north, diamonds),
	average "C "		kings(north, clubs),

	average "aces"		aces(north),
	average "S "		aces(north, spades),
	average "H "		aces(north, hearts),
	average "D "		aces(north, diamonds),
	average "C "		aces(north, clubs),

	print ( north ),
	average "top2"		top2(north),
	average "S "		top2(north, spades),
	average "H "		top2(north, hearts),
	average "D "		top2(north, diamonds),
	average "C "		top2(north, clubs),

	average "top3"		top3(north),
	average "S "		top3(north, spades),
	average "H "		top3(north, hearts),
	average "D "		top3(north, diamonds),
	average "C "		top3(north, clubs),

	average "top4"		top4(north),
	average "S "		top4(north, spades),
	average "H "		top4(north, hearts),
	average "D "		top4(north, diamonds),
	average "C "		top4(north, clubs),

	print ( north ),
	average "top5"		top5(north),
	average "S "		top5(north, spades),
	average "H "		top5(north, hearts),
	average "D "		top5(north, diamonds),
	average "C "		top5(north, clubs),

	average "c13"		c13(north),
	average "S "		c13(north, spades),
	average "H "		c13(north, hearts),
	average "D "		c13(north, diamonds),
	average "C "		c13(north, clubs),

	print ( north )