From 81666e3ae565ccd6de49877a5436e1b3154c6f32 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 1 Jun 2022 13:23:02 +0800 Subject: Move piece-map operations to piece.c --- pieces.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pieces.h') 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 -- cgit v1.2.3