aboutsummaryrefslogtreecommitdiff
path: root/src/tile.h
blob: 721630ecee18517dd9449c44554776ac8142129b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once
#include "board.h"

typedef struct {
  char edges[5];
  char center;
  int shield;
} Tile;

int is_allowed_placement(Tile tile, int index, BoardUnit* board);
int place_tile(Tile tile, int index, BoardUnit* board, int force);
void rotate_tile(Tile* tile, int increment);