question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tetris game impure function

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
btronconecommented, Oct 4, 2019

Thanks, closing! 👍

0reactions
adamlubekcommented, Oct 4, 2019
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found