yancouto / functional Goto Github PK
View Code? Open in Web Editor NEWfunctional programming game
License: The Unlicense
functional programming game
License: The Unlicense
Count reductions in solution
Printed expressions are better than what they used to look, but still pretty ugly.
We should use x
over x_0
where possible, and there's no need to rename variables if they don't collide (that is, unless they're unbound variables with different ids).
Also, let's get rid of unnecessary parenthesis as much as possible.
Let's design with that in mind out of the box
Box instead (or below) extra info that you need to click to see the hint.
The explanations for the game are hard to understand, and need to be replaced. For many of the first puzzles I spent more time trying to figure out the syntax of the language than I did trying to figure out the solution to the puzzle.
Currently lists have no sentinel, so it's hard to iterate on them. Adding a FALSE at the end should be enough, like here. May make code slightly harder though.
We would need to change the definition of numbers as well.
Probably can shove it all in a section? Probably need to explain recursion here as well.
We'll definitely need some step by step interpreting, and showing this to the player.
Right now it's a quite shitty replace editor, will definitely need improving.
Show a text box, probably next to the editor, showing the constants you know, maybe with explanations.
You should be able (already are) to solve levels in any order. However, it would be neat if you could only use constants from levels you solved.
This could also create some strategy in the order you solve the levels, which is cool. I tried to organize by the order I think is better, but it is different for everyone.
Last point:
Should be possible to use keyboard everywhere (or almost, at least)
Right now if you go over the box it will still print stuff.
A bit harder because of the Xi editor, but should be possible.
For now, we just show a "WA/AC" text, we should have proper stuff for that.
Can look exactly the same as cooks numerals, I wonder how different it is to solve the problems.
N := f:x: f (f (f ... (f x)))
What could go here? Nothing is really customizable so far.
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.