The Pedigree Project  0.1
user/applications/chess/main.cc
1 /*
2  *
3  * Copyright (c) 2008-2014, Pedigree Developers
4  *
5  * Please see the CONTRIB file in the root of the source tree for a full
6  * list of contributors.
7  *
8  * Permission to use, copy, modify, and distribute this software for any
9  * purpose with or without fee is hereby granted, provided that the above
10  * copyright notice and this permission notice appear in all copies.
11  *
12  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19  */
20 
21 #include <stdio.h>
22 #include "Bitboard.h"
23 #include "Square.h"
24 #include "moves.h"
25 #include "Engine.h"
26 #include "CmdLineInterface.h"
27 #include "XboardInterface.h"
28 #include "StateStore.h"
29 #include "hashes.h"
30 #include "BoardState.h"
31 
32 StateStore stateStore(20); // 1million entries
33 
34 int main (char argc, char **argv)
35 {
36  initLookupTable();
37 
38  Interface *pInterface = 0;
39 
40  XboardInterface interface;
41  pInterface = &interface;
42 
43  pInterface->start(argc, argv);
44 }