Compare commits
No commits in common. "139a5c7d8f0dd95705154753850ec8aebc83afff" and "4792daf127c84a1114d569505a72ff4743916918" have entirely different histories.
139a5c7d8f
...
4792daf127
@ -1,4 +1,6 @@
|
||||
#include <cctype>
|
||||
#include <ios>
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
@ -23,7 +25,7 @@ enum CastleRights {
|
||||
};
|
||||
|
||||
class Board {
|
||||
private:
|
||||
public: // make this private after debugging
|
||||
int squares[64] = {Piece::None};
|
||||
Colour turn;
|
||||
int castle_rights;
|
||||
|
@ -1,7 +1,5 @@
|
||||
#include "board.cpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
std::string pos =
|
||||
"rnbq1k1r/pp1Pbppp/2p5/8/2B5/8/PPP1NnPP/RNBQK2R w KQ - 1 8";
|
||||
|
@ -1,5 +1,20 @@
|
||||
#include "../board.cpp"
|
||||
#include "lib.cpp"
|
||||
|
||||
#define IS_TRUE(x) \
|
||||
{ \
|
||||
if (!(x)) \
|
||||
std::cout << __FUNCTION__ << " failed on line " << __LINE__ \
|
||||
<< std::endl; \
|
||||
}
|
||||
|
||||
#define ASSERT_EQUALS(expected, actual) \
|
||||
{ \
|
||||
if (expected != actual) \
|
||||
std::cout << "Expected: " << std::endl \
|
||||
<< '\t' << expected << std::endl \
|
||||
<< "Got: " << std::endl \
|
||||
<< '\t' << actual << std::endl; \
|
||||
}
|
||||
|
||||
int main() {
|
||||
std::string pos = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR";
|
||||
|
@ -1,10 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#define ASSERT_EQUALS(expected, actual) \
|
||||
{ \
|
||||
if (expected != actual) \
|
||||
std::cout << "Expected: " << std::endl \
|
||||
<< '\t' << expected << std::endl \
|
||||
<< "Got: " << std::endl \
|
||||
<< '\t' << actual << std::endl; \
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user