File: extvars.h

package info (click to toggle)
sjeng 11.2-8
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, squeeze, stretch, wheezy
  • size: 952 kB
  • ctags: 710
  • sloc: ansic: 13,313; sh: 324; makefile: 83
file content (194 lines) | stat: -rw-r--r-- 4,703 bytes parent folder | download
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
/*
    Sjeng - a chess variants playing program
    Copyright (C) 2000 Gian-Carlo Pascutto

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

    File: extvars.h                                        
    Purpose: global data definitions

*/

extern char divider[50];

extern int board[144], moved[144], ep_square, white_to_move, wking_loc,
  bking_loc, white_castled, black_castled, result, ply, pv_length[PV_BUFF],
  squares[144], num_pieces, i_depth, comp_color, fifty, piece_count;

extern long int nodes, raw_nodes, qnodes, killer_scores[PV_BUFF],
  killer_scores2[PV_BUFF], killer_scores3[PV_BUFF], moves_to_tc, min_per_game,
  sec_per_game, inc, time_left, opp_time, time_cushion, time_for_move, cur_score;

extern unsigned long history_h[144][144];

extern bool captures, searching_pv, post, time_exit, time_failure;
extern int xb_mode, maxdepth;

extern move_s pv[PV_BUFF][PV_BUFF], dummy, killer1[PV_BUFF], killer2[PV_BUFF],
  killer3[PV_BUFF];

extern  move_x path_x[PV_BUFF];
extern  move_s path[PV_BUFF];
  
extern rtime_t start_time;

extern int holding[2][16];
extern int num_holding[2];

extern int white_hand_eval;
extern int black_hand_eval;

extern int drop_piece;

extern int pieces[62];
extern int is_promoted[62];

extern int num_makemoves;
extern int num_unmakemoves;
extern int num_playmoves;
extern int num_pieceups;
extern int num_piecedowns;
extern int max_moves;

/* piece types range form 0..16 */
extern unsigned long zobrist[17][144];
extern unsigned long hash;

extern unsigned long ECacheProbes;
extern unsigned long ECacheHits;

extern unsigned long TTProbes;
extern unsigned long TTHits;
extern unsigned long TTStores;

extern unsigned long hold_hash;

extern char book[4000][161];
extern int num_book_lines;
extern int book_ply;
extern int use_book;
extern char opening_history[STR_BUFF];
extern unsigned long bookpos[400], booktomove[400], bookidx;

extern int Material;
extern int material[17];
extern int zh_material[17];
extern int std_material[17];
extern int suicide_material[17];
extern int losers_material[17];

extern int NTries, NCuts, TExt;

extern char ponder_input[STR_BUFF];

extern bool is_pondering;

extern unsigned long FH, FHF, PVS, FULL, PVSF;
extern unsigned long ext_check, ext_recap, ext_onerep;
extern unsigned long razor_drop, razor_material;

extern unsigned long total_moves;
extern unsigned long total_movegens;

extern const int rank[144], file[144], diagl[144], diagr[144], sqcolor[144];

extern int Variant;
extern int Giveaway;
extern int forcedwin;

extern bool is_analyzing;

extern char my_partner[STR_BUFF];
extern bool have_partner;
extern bool must_sit;
extern int must_go;
extern bool go_fast;
extern bool piecedead;
extern bool partnerdead;
extern int tradefreely;

extern char true_i_depth;

extern long fixed_time;

extern int hand_value[];

extern int numb_moves;

extern int phase;

FILE *lrn_standard;
FILE *lrn_zh;
FILE *lrn_suicide;
FILE *lrn_losers;
extern int bestmovenum;

extern int ugly_ep_hack;

extern int root_to_move;

extern int kingcap;

extern int pn_time;
extern move_s pn_move;
extern move_s pn_saver;
extern bool kibitzed;
extern int rootlosers[PV_BUFF];
extern int alllosers;
extern int s_threat;

extern int cfg_booklearn;
extern int cfg_devscale;
extern int cfg_razordrop;
extern int cfg_cutdrop;
extern int cfg_futprune;
extern int cfg_onerep;
extern int cfg_recap;
extern int cfg_smarteval;
extern int cfg_attackeval;
extern float cfg_scalefac;
extern int cfg_ksafety[15][9];
extern int cfg_tropism[5][7];
extern int havercfile;
extern int TTSize;
extern int PBSize;
extern int ECacheSize;

extern int my_rating, opp_rating;
extern int userealholdings;
extern char realholdings[255];

extern int move_number;
extern unsigned long hash_history[600];

extern int moveleft;
extern int movetotal;
extern char searching_move[20];

extern char setcode[30];

extern int cbEGTBCompBytes;
extern int EGTBProbes;
extern int EGTBHits;
extern int EGTBPieces;
extern int EGTBCacheSize;
extern char EGTBDir[STR_BUFF];
extern int SEGTB;