]> git.scottworley.com Git - slidingtile/blame - sliding_tile_lib.h
Clean Makefile.bak too
[slidingtile] / sliding_tile_lib.h
CommitLineData
e86755d7
SW
1const int BOARD_DIM = 4;
2const int BOARD_SIZE = BOARD_DIM * BOARD_DIM;
3signed char adjacent[BOARD_SIZE][5] = {
4 1, 4, -1, -1, -1,
5 0, 2, 5, -1, -1,
6 1, 3, 6, -1, -1,
7 2, 7, -1, -1, -1,
8 0, 5, 8, -1, -1,
9 1, 4, 6, 9, -1,
10 2, 5, 7, 10, -1,
11 3, 6, 11, -1, -1,
12 4, 9, 12, -1, -1,
13 5, 8, 10, 13, -1,
14 6, 9, 11, 14, -1,
15 7, 10, 15, -1, -1,
16 8, 13, -1, -1, -1,
17 9, 12, 14, -1, -1,
18 10, 13, 15, -1, -1,
19 11, 14, -1, -1, -1,
20};