summaryrefslogtreecommitdiff
path: root/pieces.h
blob: 1a3e247b6ff83bc9b86d0ec6acbe403b05dbed82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef PIECES_H
#define PIECES_H
struct piece {
    int h;
    int w;
    int points;
    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, int mapW);
void freepiece(struct piece* pc);
#endif