sharkdp/cube-composer

Level 4.1 solution not recognized

jonashw opened this issue · 4 comments

From what I can tell, I met the goal on level 4.1 but the game does not recognize my solution.
My solution: [map(x2), map(+1), filter even, map(-1)]. See attached screenshot:

cube_composer_bug_level_4 1

It's worth noting that the solution above is not the optimal solution (there is a 2-function solution contained within that solution) but it still meets the goal.

After map (x2) and map (+1), every number is odd. Then, you apply filter even, which means you get the empty list. So this is not a solution (the 2-function solution that you mention, is a solution).

Unfortunately, the place holder for the empty list is not shown. I'll look into this.

Ah, that makes sense.

Fixed! Thanks for reporting this.