]> git.scottworley.com Git - slidingtile/blob - sliding_tile_lib.h
8967324fb745eba07d8cd98743edac3ae597757b
[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 typedef signed char Board[BOARD_SIZE];
10 std::istream& operator>>(std::istream& is, Board& board);
11
12 extern signed char adjacent[BOARD_SIZE][5];
13
14 #endif /* _SLIDING_TILE_LIB_H */