2025-02-02 15:15:14 +01:00
|
|
|
#include "board.hpp"
|
2025-02-02 14:50:44 +01:00
|
|
|
|
2025-02-02 14:54:17 +01:00
|
|
|
#include <iostream>
|
|
|
|
|
2025-02-02 14:50:44 +01:00
|
|
|
int main(int argc, char* argv[]) {
|
|
|
|
std::string pos =
|
|
|
|
"rnbq1k1r/pp1Pbppp/2p5/8/2B5/8/PPP1NnPP/RNBQK2R w KQ - 1 8";
|
|
|
|
Board* b = Board::setup_fen_position(pos);
|
|
|
|
|
2025-02-02 15:15:14 +01:00
|
|
|
std::cout << sizeof(Board) << std::endl;
|
|
|
|
std::cout << sizeof(int8_t[64]) << std::endl;
|
|
|
|
std::cout << sizeof(Colour) << std::endl;
|
|
|
|
|
2025-02-02 14:50:44 +01:00
|
|
|
std::string fen = b->to_fen();
|
|
|
|
|
|
|
|
std::cout << pos << std::endl;
|
|
|
|
std::cout << fen << std::endl;
|
|
|
|
|
|
|
|
std::cout << (fen.substr(0, fen.find(" ")) == pos.substr(0, pos.find(" ")))
|
|
|
|
<< std::endl;
|
|
|
|
return 0;
|
|
|
|
}
|