Cube Composer
September 13, 2015 11:55 PM   Subscribe

A puzzle game inspired by functional programming, by David Peter. There are only a few levels available now, but with a bit of PureScript programming you can also create your own puzzles.
posted by logopetria (10 comments total) 44 users marked this as a favorite
 
Hooked, thank you.
posted by i_am_joe's_spleen at 3:14 AM on September 14, 2015


ooh, this is fun. It is annoying formatted on my screen, though, so that the starting image and the set of functions can't both be on screen at once unless you zoom out and make everything very small.

Also, I wish it would tell you whether you found the solution with the fewest steps. I think sometimes mine are quite inelegant.
posted by lollusc at 4:05 AM on September 14, 2015 [1 favorite]


The puzzles do not have that many degrees of freedom, I doubt there are multiple solutions. In fact I sort of cheated on some by just trying out different combinations of steps - but on the other hand treating functions as interchangeable parts is a pretty functional thing to do.
posted by Dr Dracator at 4:26 AM on September 14, 2015


My new constitutional goto!
posted by bird internet at 4:31 AM on September 14, 2015 [2 favorites]


Some definitely have multiple solutions, even if trivially so. For instance, on 1.4 (and at least one previous to 1.4) you can throw a map reverse anywhere into a solution and and get a longer, still valid, solution.
posted by noneuclidean at 4:55 AM on September 14, 2015


There's definitely the opportunity for multiple solutions because there's often a function you can apply which is a no-op so just stick it in the middle (eg map(yellow->blue) at a point where there's no yellows).

I like this game :) Thanks for posting it. I hope HOFs come into play somehow.

Edit: snap!
posted by mjg123 at 4:57 AM on September 14, 2015


I sort of cheated on some by just trying out different combinations of steps

Superoptimizer: a look at the smallest program
posted by flabdablet at 6:06 AM on September 14, 2015


I sort of cheated on some by just trying out different combinations of steps

Me too, although it was useful to figure out the logic with hindsight. Fun though!
posted by carter at 6:28 AM on September 14, 2015


> I sort of cheated on some by just trying out different combinations of steps

This is not terribly different from the actual experience of being a programmer. In fact, I'd say the biggest difference between this game and real life is the game only lets you use each function once.
posted by cardioid at 8:38 AM on September 14, 2015 [2 favorites]


Whee, this was fun. I was frustrated for a while by my longstanding inability grok octal, but I powered through and now I want to play with making new levels when I get home.
posted by sparklemotion at 11:19 AM on September 14, 2015


« Older Bite my shiny metal ass   |   When Pilots Crash (TV Pilots) Newer »


This thread has been archived and is closed to new comments