]>
git.scottworley.com Git - slidingtile/blob - sliding_tile_lib.cc
a4d522e6745a99507612540f9664ed3ab6f9a8ee
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
);