#include #include "Board.h" #include "Move.h" #include "Types.h" Board b = Board(); void setup() { // put your setup code here, to run once: Serial.begin(115200); //char value; //while(Serial.available() == 0) { // delay(100); //} //value = Serial.read(); //b.field[0x31] = char_to_piece(value); //Serial.println(F("hello")); //delay(1000); //Serial.println(b.get_zobrist()); //Serial.println(sizeof(b)); //Move m = {0x14, 0x34, P_EMPTY}; //Serial.println(F("Initial board")); //b.print(); //b.make(m); //Serial.println(F("Board after e2e4")); //b.print(); //b.unmake(); //Serial.println(F("Board after unmake")); //b.print(); //delay(1000); Serial.println(F("hello")); b = Board(); int startTime = micros(); b.make({0x14, 0x34, P_EMPTY}); b.make({0x64, 0x54, P_EMPTY}); b.make({0x34, 0x44, P_EMPTY}); b.make({0x63, 0x43, P_EMPTY}); //b.print(); b.make({0x44, 0x53, P_EMPTY}); //b.print(); int elapsed = micros() - startTime; Serial.print(elapsed); Serial.println("microseconds for 5 moves"); } void loop() { // put your main code here, to run repeatedly: }