28 lines
469 B
C++
28 lines
469 B
C++
#include "Board.h"
|
|
#include "Move.h"
|
|
#include "Types.h"
|
|
|
|
Board b = Board();
|
|
|
|
void setup() {
|
|
// put your setup code here, to run once:
|
|
Serial.begin(9600);
|
|
|
|
char value;
|
|
while(Serial.available() == 0) {
|
|
delay(100);
|
|
}
|
|
value = Serial.read();
|
|
|
|
b.field[0x32] = char_to_piece(value);
|
|
}
|
|
|
|
void loop() {
|
|
// put your main code here, to run repeatedly:
|
|
Serial.println(F("hello"));
|
|
delay(1000);
|
|
Serial.println(b.get_zobrist());
|
|
b.print();
|
|
Serial.println(sizeof(b));
|
|
}
|