-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfenstring.h
More file actions
executable file
·37 lines (33 loc) · 838 Bytes
/
fenstring.h
File metadata and controls
executable file
·37 lines (33 loc) · 838 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
#ifndef FENSTRING_H
#define FENSTRING_H
#include <string>
#include "defines.h"
#include "piece.h"
#include "move.h"
namespace Napoleon
{
class FenString
{
public:
std::string FullString;
Piece PiecePlacement[64];
Byte sideToMove;
bool CanWhiteShortCastle;
bool CanWhiteLongCastle;
bool CanBlackShortCastle;
bool CanBlackLongCastle;
int EnPassantSquare;
int HalfMove;
std::string BestMove;
FenString(std::string);
void Parse();
private:
void parsePiecePlacement(std::string);
void parsesideToMove(std::string);
void parseCastling(std::string);
void parseEnPassant(std::string);
void parseHalfMove(std::string);
void parseBestMove(std::string);
};
}
#endif // FENSTRING_H