working reworked game

This commit is contained in:
2025-09-10 22:08:34 +03:00
parent 7498a49f88
commit ad5b8beb99
15 changed files with 416 additions and 144 deletions

15
src/BoardPiece.c Normal file
View File

@@ -0,0 +1,15 @@
#include <stdio.h>
#include "BoardPiece.h"
void board_piece_print_info(BoardPiece* piece, char* name) {
printf("%s: {\n", name);
printf(" x: %d\n", piece->x);
printf(" y: %d\n", piece->y);
printf(" vis_char: %c\n", piece->vis_char);
printf("}\n");
}
bool pieces_collide(BoardPiece* piece1, BoardPiece* piece2) {
return piece1->x == piece2->x && piece1->y == piece2->y;
}