aboutsummaryrefslogtreecommitdiff
path: root/src/board/board.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/board/board.cpp')
-rw-r--r--src/board/board.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/board/board.cpp b/src/board/board.cpp
index cb9254e..8c8e423 100644
--- a/src/board/board.cpp
+++ b/src/board/board.cpp
@@ -263,3 +263,6 @@ void UpdateBitboards(Game *g) {
g->PieceBitboard |= (1ULL << i);
}
}
+void SetPiece(int i, PieceType type, bool color, Game *g) {
+ g->pieces[i] = {.color = color, .type = type};
+}