aboutsummaryrefslogtreecommitdiff
path: root/src/board.cpp
blob: 81cb583fa768294fcc76ee4a6ad4389a94bc928d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "board.hpp"
#include <cstdio>

void printBoard(board *b) {
  for (int i = 0; i < 64; i++) {
    piece currentPiece = b->pieces[i];
    std::printf("%d ", currentPiece.type);
    if (i % 8 == 7 && i != 0) {
      std::printf("\n");
    }
  }
}