sharkdp / cube-composer Goto Github PK
View Code? Open in Web Editor NEWA puzzle game inspired by functional programming
Home Page: https://david-peter.de/cube-composer
License: MIT License
A puzzle game inspired by functional programming
Home Page: https://david-peter.de/cube-composer
License: MIT License
Great game! Just a suggestion - a few very basic examples, maybe with one step each, just to illustrate the purpose of each function, would probably be very useful.
Mental base-8 conversions are taxing.
Hi and thanks for cube-composer!
As can be seen in the screenshot, the function's dialog sometimes obscures the view of the cubes, even on a 1920*1080 screen like mine. One thing that can be done is allowing to drag and move it so the rest of the page will be visible. There's http://www.walterzorn.de/en/dragdrop/dragdrop_e.htm for that (which seems old) and I also found http://www.useragentman.com/blog/2010/01/10/cross-browser-html5-drag-and-drop/ but the latter link seems overly detailed.
maybe falling cubes, rotating cubes..
Some kind of visual feedback: which "wall" belongs to which instruction?
Related: show arrow which indicates the direction of the program?
This would also allow us to add functions by pressing the corresponding key
Chrome 78.0.3904.97
Firefox 70.0.1
OS: Ubuntu 18.04
Expected behavior: 0.3 Goal states: "you can change the order of the functions by drag and drop." So, when I click and drag one function among several, in the right hand panel, it should go where I drop it.
Actual behavior: I get visual feeback that the function has been picked up - the image follows my mouse, but when I drop it, the image just disappears. The image of the function in the right panel does not move, either during dragging or after.
How to reproduce. Start from level 0.3 so that many functions are available. Click three in the left panel so that they appear in the right panel. Click and drag any one of them in the right panel and drop it in a new location, also within the right panel.
Other information: Clicking and dragging works for me in this test page: https://dunnbypaul.net/js_mouse/. I've also tried it in Chromium.
When empty, the right panels says "drop functions here". This also does not work.
Happy to provide other details. Really hoping this isn't my fault!
Add an indicator to the drop-down list, to quickly see which levels have been solved.
Currently the only way to reset the status for all levels is manually selecting them, seeing the solution and then pressing reset.
It would be useful to have a replay functionality.
Just add a Reset all
button under the choose level dialog with a little confirmation dialog.
Show animation if puzzle has been solved? Rotating target etc..
Show animation for each program change?
I don't understand map(+1)
To share solutions. It should probably also have a level id attached to it.
Mental base-8 conversions are taxing.
Since this project relies on some outdated versions of packages (like [email protected], [email protected], etc) , the local install instruction no longer works now.
I've managed to compile the project by manually locking the package to the old versions in package.json
and bower.json
, and am wondering if a PR is acceptable for this approach.
See discussion here: https://news.ycombinator.com/item?id=9644324
Indicate if the level has been solved
IMHO it would be better if each functions application appeared between its input and output. Is the current layout intentional?
Eg I would try to provide translation to Russian if it could be easily integrated. It would make the game available to younger children who know only basic English, or none at all.
Any interest in marketing this? Selfishly I wanna play on my phone 😹
https://github.com/nicholaskariniemi/purescript-react-native
Specific ideas:
See comment by minikomi on hacker news: https://news.ycombinator.com/item?id=9644324
See discussion here
I love this project, but at present it has no license. Could one be added please?
Hi,I'm new to nodejs. Could somebody kindly tell me how to start the game in my local environment after run those building process,thank you very much
See comments here: https://news.ycombinator.com/item?id=9644324
Could also be introduced by an introductory level, see #18.
This is a great game - thanks a lot! I have a suggestion for a feature.
Something I found myself wondering as I was playing it is: am I using the functions efficiently? It'd be great to be able to know how close to optimal my solution was, because I would have preferred to stay on a level to improve my solution than to move to a higher level in some cases.
It's possible that 'optimal' could take on a lot of different meanings once you get into the higher levels - I haven't made it that far yet. But at least for the beginning levels, I imagine it would be tied to the number of functions used.
While I was playing I was looking for an option like 'training mode' or something that would only accept optimal solutions (or at least would alert you about suboptimal solutions).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.