4 ms·
Yeah, I wanted to stay with your jokey tone. I was thinking along the same line as the parent comment at your link [2] -- really, I was too eager to play know-
by abecedarius 4y ago
Yeah, I wanted to stay with your jokey tone.
I was thinking along the same line as the parent comment at your link [2] -- really, I was too eager to play know-it-all.
Just to explain the difference that may be unclear because of the language: the move functions I linked to call an `each` function which is like Haskell's `map`, only because these move functions all return a list of board states, for the sake of animating the moves in the 2048 game.
These all work in terms of `left` in my code, vs. `moveRight` in yours. So the function that'd cause trouble is `down` instead of `moveUp`, if I'd tried to organize it exactly the way you did, versus just generally basing it on conjugation. I didn't try to golf this version, and I sure wouldn't bet on being able to as much as you did. Respect.