summaryrefslogtreecommitdiff
path: root/pieces.h
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-06-01 13:23:02 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-06-01 13:23:02 +0800
commit81666e3ae565ccd6de49877a5436e1b3154c6f32 (patch)
tree820548c1d1542753a812a5cfe9f2357eb54cee6b /pieces.h
parent90bff8fb828c99d8b1ef00fe783dd50887c81f70 (diff)
Move piece-map operations to piece.c
Diffstat (limited to 'pieces.h')
-rw-r--r--pieces.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pieces.h b/pieces.h
index ee2e371..c0d5eaa 100644
--- a/pieces.h
+++ b/pieces.h
@@ -7,5 +7,9 @@ struct piece {
};
struct piece* randpiece();
+void refillpieces(struct piece** hand, int nhand);
+bool placeable(char** map, struct piece* pc, int row, int col, int mapH, int mapW);
+void place(char** map, struct piece* pc, int row, int col);
+void freepiece(struct piece* pc);
#endif