Anonymous
public text v1 · immutabletypedef struct point {
short x;
short y;
} point;
typedef struct rock {
point loc;
short health;
} rock;
typedef struct llnode {
struct llnode *next;
union data {
segment hole;
point location;
};
} llnode;
typedef struct rocknode {
llnode node;
short health;
} rocknode;