const int MAXX=6;
const int MAXY=4;
typedef bool board_t[MAXY+1][MAXX+1];
typedef struct {
int x;
int y;
} position_t;
typedef struct {
position_t from;
position_t to;
int length;
} segment_t;
board_t stumps = {
{0,0,0,0,0,0,0},
{1,0,1,1,0,0,0},
{0,0,0,0,0,0,0},
{0,0,0,1,1,0,1},
{0,0,0,0,0,0,0}
};
position_t pos={0,1};
position_t target={6,3};
segment_t s1={{0,1}, {2,1}, 2};
segment_t s2={{2,1}, {3,1}, 1};
chan walk, pickup, putDown, putUp, putRight, putLeft;Planksegment_t& s// Place local declarations here.
carryidleHiker
p1=Plank(s1);
p2=Plank(s2);
system p1, p2, Hiker;