Source code to unfold (license is GPL3)

Makefile Makefile

Compile with

make

or

gcc unfold.c -o unfold -Wall `pkg-config gtk+-2.0 --cflags --libs`
This is a game where the object is to "unfold" the graph so that no edges intersect (it is a planar graph). This was the result of seeing the flash game with the same objective, and deciding something had been coded badly (since it took a substantial amount of time to check that the level was solved. This program is still missing levels, it still contains nodes with only one edge, and there is no ability to change the difficulty (number of nodes, number of edges on any node). Additionally, it hasn't been optimized, and has problems on old hardware at large screen sizes, and at high node numbers (since I used some pretty bad algorithms for collision detection).