Adapt Untangle into a graph editor.

This builds a secondary GUI program sharing most of the Untangle code,
similar to galaxieseditor. You can still drag points around as in the
actual Untangle game, but also you can right-drag to add or remove an
edge between two points. And the 'copy to clipboard' action generates
the Untangle game id corresponding to whatever you ended up with.

This could be used for hand-designing actual Untangle games, but my
more immediate use for it is as a convenient method of constructing
test cases for the new graph testing code.
This commit is contained in:
Simon Tatham
2024-09-18 16:09:07 +01:00
parent c3800c59d5
commit 2ac951e70a
2 changed files with 313 additions and 72 deletions

View File

@ -268,6 +268,8 @@ puzzle(untangle
DISPLAYNAME "Untangle"
DESCRIPTION "Planar graph layout puzzle"
OBJECTIVE "Reposition the points so that the lines do not cross.")
guiprogram(grapheditor untangle.c
COMPILE_DEFINITIONS EDITOR)
add_subdirectory(unfinished)
add_subdirectory(auxiliary)