-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsort.h
52 lines (36 loc) · 1.05 KB
/
sort.h
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
// sort.h
#ifndef SORT_H
#define SORT_H
// includes
#include "attack.h"
#include "board.h"
#include "list.h"
#include "util.h"
// types
struct sort_t {
int depth;
int height;
int trans_killer;
int killer_1;
int killer_2;
int gen;
int test;
int pos;
int value;
board_t * board;
const attack_t * attack;
list_t list[1];
list_t bad[1];
};
// functions
extern void sort_init ();
extern void sort_init (sort_t * sort, board_t * board, const attack_t * attack, int depth, int height, int trans_killer);
extern int sort_next (sort_t * sort);
extern void sort_init_qs (sort_t * sort, board_t * board, const attack_t * attack, bool check);
extern int sort_next_qs (sort_t * sort);
extern void good_move (int move, const board_t * board, int depth, int height);
extern void history_good (int move, const board_t * board);
extern void history_bad (int move, const board_t * board);
extern void note_moves (list_t * list, const board_t * board, int height, int trans_killer);
#endif // !defined SORT_H
// end of sort.h