-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
54 lines (40 loc) · 1.09 KB
/
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
46
47
48
49
50
51
52
53
54
//
// main.cpp
// Chess Engine
//
// Created by Blake Johnson on 12/12/18.
// Copyright © 2018 Blake Johnson. All rights reserved.
//
#include <ctime>
#include <iostream>
#include <string>
#include "bitboard.hpp"
#include "moveGen.hpp"
#include "position.hpp"
#include "search.hpp"
#include "types.hpp"
#include "UCI.hpp"
extern move pvTable[256];
int main(int argc, const char * argv[]) {
square sw = square(e8 ^ (black * 56));
sw = square(f8 ^ (black * 56));
bitboards::init();
evaluation::init();
UCI newUCI;
newUCI.loop();
/*
position * pos = new position();
bitboard nodes = 0;
clock_t t;
std::cout <<"Starting Perft... \n\n";
t = clock();
nodes= perftDivide(5, *pos);
t = clock() - t;
std::cout << "nodes = " << nodes << " seconds: " << float(t)/CLOCKS_PER_SEC << std::endl;
std::cout << "totalNodes = " << pos->get_nodes() << "\n";
// pos -> printAllBitboards();
pos->printBoard();
// printBitboard((pos -> get_pieces(p_queen, p_rook)) & pos->get_pieces(white));
*/
return 0;
}