twistturns

generates dot files of the graph of all reachable states in a Top Spin puzzle
git clone https://wehaveforgeathome.hates.computer/twistturns.git
Log | Files | Refs | LICENSE

perm_gen.h (382B)


      1 /**
      2 * perm_gen.h : "header" (i.e. API interface) for perm_gen.c code.
      3 *
      4 * adapted from http://cs/courses/fall2008/algorithms/code/c_examples/multiple_files/some_func.h
      5 **/
      6 
      7 typedef struct link_type *link;
      8 struct link_type {
      9 	int value;
     10 	link next;
     11 };
     12 
     13 link new_chain(int links);
     14 
     15 link chain_cpy(link target);
     16 
     17 int chains_equal (link first, link second);
     18 
     19 int print_chain(link cur);