summaryrefslogtreecommitdiff
path: root/pieces.h
blob: 7c3ce6cf281c1b3fe72528bb5c2a1dde8608c741 (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);
void freepiece(struct piece* pc);
#endif