forked from stevemaughan/maverick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
45 lines (35 loc) · 894 Bytes
/
main.cpp
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
//===========================================================//
//
// Maverick Chess Engine
// Copyright 2013 Steve Maughan
//
// Started March 1st 2013
//
//===========================================================//
#include <stdio.h>
#include <stdlib.h>
#include <process.h>
#include "defs.h"
#include "data.h"
#include "procs.h"
#include "bittwiddle.h"
int main(int argc, char *argv[])
{
setbuf(stdout, NULL);
setbuf(stdin, NULL);
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stdin, NULL, _IONBF, 0);
uci.engine_initialized = FALSE;
uci.quit = FALSE;
uci.stop = FALSE;
init_engine(position);
set_fen(position, "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -");
create_uci_engine_thread();
uci_set_author();
listen_for_uci_input();
destroy_pawn_hash();
destroy_material_hash();
destroy_hash();
close_book();
return TRUE;
}