tetris game impure function
See original GitHub issueI love how you wanted to code tetris game with rxjs but I think it could be more elegant
handleKeyPress
and rotate
and collide
and score
they all mutate state but it was better that it return a new state
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
How a Java Programmer Wrote Console Tetris In Haskell ...
For a concrete problem that can use a more 'functional' approach, consider: how do you automatically test your tetris game?
Read more >pure function vs impure function - Node.js Repl
Run Node.js code live in your browser. Write and run code in 50+ languages online with Replit, a powerful IDE, compiler, & interpreter....
Read more >kwantam/TriHs: Tetris game in Haskell using Gtk2Hs/Cairo.
Tetris game in Haskell using Gtk2Hs/Cairo. ... how to change the keybindings; see the "handleButtonPress" function in the Main module (TriHs.hs).
Read more >The Chemistry of Game Design - LOSTGARDEN
We are still alchemists of our trade, mixing two-parts impure story with one-part polluted game play with three-parts market voodoo.
Read more >You bring up a good point, and I've had similar conversations ...
Here is an almost purely functional Tetris clone written in Clojurescript: ... I also wonder if using those things makes functional programming impure....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, closing! 👍
yes 😃 this PR resolved it: https://github.com/btroncone/learn-rxjs/pull/237