-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEngine.h
More file actions
40 lines (29 loc) · 943 Bytes
/
Copy pathEngine.h
File metadata and controls
40 lines (29 loc) · 943 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
//
// Created by Julius on 24/04/2024.
//
#ifndef UNTITLED_ENGINE_H
#define UNTITLED_ENGINE_H
#include "MoveGenerator.h"
#include "Position.h"
namespace Engine {
class Stavanger {
public:
Stavanger(Position& pos,MoveGenerator& gen);
Position& pos;
MoveGenerator& gen;
int searchDepth =6;
void makeMove(Move move);
Move bestMove();
private:
static constexpr int PAWN_VALUE = 100;
static constexpr int KNIGHT_VALUE = 320;
static constexpr int BISHOP_VALUE = 330;
static constexpr int ROOK_VALUE = 500;
static constexpr int QUEEN_VALUE = 900;
float search(Position& pos, int depth, float alpha, float beta);
float eval(Position& pos);
};
int perft(Position& position,MoveGenerator* gen, int depth,int& nodes);
int perftVerbose(Position& position,MoveGenerator* gen, int depth);
}
#endif //UNTITLED_ENGINE_H