blob: c0d5eaa6db8b21cb3937ddb1598c8b2d9f9d7843 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#ifndef PIECES_H
#define PIECES_H
struct piece {
int h;
int w;
char* blocks;
};
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
|