]>
git.scottworley.com Git - slidingtile/blob - sliding_tile_lib.cc
1 #include "sliding_tile_lib.h"
5 signed char adjacent
[BOARD_SIZE
][5] = {
24 std::istream
& operator>>(std::istream
& is
, Board
& board
) {
25 for (int i
= 0; i
< BOARD_SIZE
; i
++) {
27 is
.setstate(std::istream::failbit
);
30 if (i
> 0 && is
.get() != ',') {
31 is
.setstate(std::istream::failbit
);
36 board
.board
[i
] = numeric
;