This is still work in progress. I would love to hear your feedback. GitHub link: https://github.com/sharkdp/cube-composer
Like others I would like to second the visualization of block sizes better. And a brief explanation of commands like stackEqual (is there some sort of normalization going on to unit size?). push(X) would probably be better read as layer(X) or stack(X).
Is there a way to normalize the program into a text string and also convert text string back into the program. This would allow for easy cut/paste sharing between users (including HN comments).
This feedback is based on having completed up to 1.2 only.
I solved the second one using stackEqual. Still have no idea what it does... The interface is really fun though, and the blocks look nice. Only the "Solved!" text is quite small and not easy to spot.
stackEqual stacks neighboring blocks of the same color on top of each other.
I solved the second one using stackEqual. Still have no idea what it does... The interface is really fun though, and the blocks look nice. Only the "Solved!" text is quite small and not easy to spot.
stackEqual stacks neighboring blocks of the same color on top of each other.
Not quite, it stacks neighbouring columns with the same pattern of colours on top of each other, e.g. http://i.imgur.com/35N4tPu.png
The columns have to be the same pattern exactly (same height, same colours)
Awesome game! The stackequal function is confusing though... Any help or description would've saved a lot of time...
I couldn't come up with a better name for this function. I will try to add a help-panel or introductory chapters to make this more clear. Thank you very much for the feedback.
Awesome game! The stackequal function is confusing though... Any help or description would've saved a lot of time...
I couldn't come up with a better name for this function. I will try to add a help-panel or introductory chapters to make this more clear. Thank you very much for the feedback.
Ah.. it's like .. smush equal neighbours together .. yeah, tricky to name!
PureScript is a game changer. Compilation is fairly simple (unlike GHCJS), full Haskell'ish type system and modern/compact syntax, picked up a lot of momentum lately. It find it by far the best AltJS implementation currently available. Have a look at the code implementing the transformer functions, so clean! https://github.com/sharkdp/cube-composer/blob/master/src/Tra... Nice demo!
Thank you! I started this project with plain JS + lodash, went on to JS + ramda and ended up using PureScript. I absolutely recommend it. I also have been using Haste before (Haskell to JavaScript), but I really like the lightweight architecture around PureScript, the super-simple FFI and the generated JS.