Refactor #26
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <string_view>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
@@ -14,7 +15,7 @@ enum MOVE_FLAGS {
|
|||||||
knightPromoCapture, bishopPromoCapture, rookPromoCapture, queenPromoCapture
|
knightPromoCapture, bishopPromoCapture, rookPromoCapture, queenPromoCapture
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr std::array<const char*, 14> moveTypes {
|
constexpr std::array<std::string_view, 14> moveTypes {
|
||||||
"quiet", "doublePawnPush",
|
"quiet", "doublePawnPush",
|
||||||
"kingCastle", "QueenCastle",
|
"kingCastle", "QueenCastle",
|
||||||
"capture", "epCapture",
|
"capture", "epCapture",
|
||||||
|
|||||||
Reference in new issue
Block a user