-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
45 lines (26 loc) · 746 Bytes
/
Copy pathmain.cpp
File metadata and controls
45 lines (26 loc) · 746 Bytes
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
#include <iostream>
#include <chrono>
#include "Position.h"
#include "MoveGenerator.h"
#include "Helper.h"
#include "Engine.h"
using namespace Engine;
int main() {
std::cout << "Hello, World!" << std::endl;
Position pos("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1");
MoveGenerator moveGen;
Stavanger engine(pos,moveGen);
while(true){
engine.pos.draw();
std::cout << "Enter your move : ";
std::string input;
std::cin >> input;
Move response = engine.bestMove();
std::cout<< "+++++++++++" <<std::endl;
printMove(response);
engine.makeMove(response);
}
// pos->makeMove(generatedMoves[0]);
// pos->draw();
return 0;
}