No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

icfp2016 - Errol's Robots - Perl 6

This year we worked on reverse-engineering folded origami! Our solution is implemented in Perl 6, calling out to some Perl 5 libraries. We got to the point where we could begin doing hill-climbing, randomly folding origami in an attempt to get closer to the target problem's silhouette.

Perl 6 shined for getting the problems parsed and built out into nice object graphs. The tooling was OK, but needs some work -- we used LREP like you would use binding.pry in Ruby. We should have spent more time early on finding some libraries to manipulate polygons ... much time was spent implementing things from scratch only to replace them with an off the shelf library later.

One particularly fun thing is Perl 6's built-in default of using Rational numbers, which made keeping accurate values easy. One particularly annoying thing is that we never know if we should .list or .flat or .Array things, so we just do them at random.

We just barely reached our goal of automatic problem solving using hill climbing. This was about 1-2 days behind the schedule initially hoped for!

Team Info

  • Brock Wilcox
  • Mike Burns
  • Jason Woys

Contest Server: Team ID: 31 Password: zXz99ySdzWSn API Key: 31-99e01d42cda065257f188de236e944ef


  • Render problems
  • Render solutions
  • Fold polygons (split them)
  • Track polygon source / dest
  • Calculate overlap from an Origami to a Problem
  • Output a Solution from an Origami
  • Simple fold for an Origami
  • Complex fold for an Origami
  • Random fold
  • Random hill climb
  • Simulated annealing
  • Other search -- GA?
  • Submit trivial solutions
  • Submit less-trivial solutions
  • Submit hand-made solutions
  • Submit hand-made problems