]> git.scottworley.com Git - slidingtile/blob - sliding_tile_lib.h
1ffe6fa24c3deaf33f1a4f475ff9eff0e8e26ca3
[slidingtile] / sliding_tile_lib.h
1 #ifndef _SLIDING_TILE_LIB_H
2 #define _SLIDING_TILE_LIB_H
3
4 #include <istream>
5
6 const int BOARD_DIM = 4;
7 const int BOARD_SIZE = BOARD_DIM * BOARD_DIM;
8
9 struct Board {
10 signed char board[BOARD_SIZE];
11 };
12 std::istream& operator>>(std::istream& is, Board& board);
13
14 extern signed char adjacent[BOARD_SIZE][5];
15
16 #endif /* _SLIDING_TILE_LIB_H */