Live data from Hacker News

Show HN: A puzzle game inspired by functional programming, written in PureScript

david-peter.de

21–30 of 50 posts

Re: Show HN: A puzzle game inspired by functional programming, written in PureScript

#21
post #2

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 user…

Thank you for the valuable feedback!

There is no import/export available right now, but you can take a look at the developer console for an output line like

Program: ["rejectO","replaceYbyBY","replaceBbyOO"]

I definitely like the idea, however. It should be quite simple to implement it. Basically, the 'code' right now is just the compositions of different 'transformers'. In pseudo-PureScript:

rejectO >>> replaceYbyBY >>> replaceBbyOO

Re: Show HN: A puzzle game inspired by functional programming, written in PureScript

#22

Earlier quoted context omitted.

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)

Exactly! The code for stackEqual is here: https://github.com/sharkdp/cube-composer/blob/master/src/Tra...

I should definitely add a better description somewhere!

Re: Show HN: A puzzle game inspired by functional programming, written in PureScript

#24
post #17

This is so amazing, I love it so much! Very challenging, yet highly entertaining.

Thank you! I haven't really worked on a nice 'transition' in difficulty. I will try to add more introductory levels with explanations in the future.

Re: Show HN: A puzzle game inspired by functional programming, written in PureScript

#26
post #2

This is still work in progress. I would love to hear your feedback. GitHub link: https://github.com/sharkdp/cube-composer

[white] as a catchall is a bit misleading. Perhaps a different border color or an asterisk inside the square to clearly mark that it's not an actual white block?

Re: Show HN: A puzzle game inspired by functional programming, written in PureScript

#27
post #23

Amazing game! On the "Fort" level, the map [blue][white]->[blue] removes the [blue] block, rather than the [white]. This is a different behavior than the map [red][red]->[blue], which converts two [red] into one [blue].

Absolutely! I fixed it: https://github.com/sharkdp/cube-composer/commit/ece7c6dbeb0b...

Thanks for the feedback!

Re: Show HN: A puzzle game inspired by functional programming, written in PureScript

#28
post #26
post #2

This is still work in progress. I would love to hear your feedback. GitHub link: https://github.com/sharkdp/cube-composer

[white] as a catchall is a bit misleading. Perhaps a different border color or an asterisk inside the square to clearly mark that it's not an actual white block?

Good idea! I will try both and see what works best. Thank you!

Re: Show HN: A puzzle game inspired by functional programming, written in PureScript

#29
post #4
post #3

Earlier quoted context omitted.

It would be better if we could see the adjacent cubes with same color clearly. Especially on objective part, it is hard to determine how long a line segment is if it is same color.

Thank you for the feedback. I have been thinking about this earlier ( https://github.com/sharkdp/cube-composer/issues/7 ). I will definitely try to improve it.

How about truncate the cube a little bit ( http://en.wikipedia.org/wiki/Truncated_cube )?

Re: Show HN: A puzzle game inspired by functional programming, written in PureScript

#30
post #4

Earlier quoted context omitted.

Thank you for the feedback. I have been thinking about this earlier ( https://github.com/sharkdp/cube-composer/issues/7 ). I will definitely try to improve it.

How about truncate the cube a little bit ( http://en.wikipedia.org/wiki/Truncated_cube )?

I will try this out in Isomer.js and see how it looks like. Thanks for the idea!
Post reply on HN