simon-svn: puzzles: simon

Commits to Tartarus CVS repository. tartarus-commits at
Sat Apr 2 16:19:29 BST 2011

SVN root:       svn://
Changes by:     simon
Revision:       9137
Date:           2011-04-02 16:19:29 +0100 (Sat, 02 Apr 2011)

Log message (8 lines):
Improve the algorithm for figuring out where the number should be
drawn in a face: averaging the vertex positions works fine for regular
or roughly regular convex polygons, but it'll start being a pain for
odder or concave ones.

This is a kludgey brute-force algorithm; I have ideas about more
elegant ways of doing this job, but they're more fiddly, so I thought
I'd start with something that basically worked.

Modified files:
U   puzzles/loopy.c


More information about the tartarus-commits mailing list