You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really miss a fast-drop key (the down key in some implementations) for situations where I want to “tuck” a piece under another, and so have to wait for the falling one to drop all the way down.
I confess that I tried doing it myself, but got utterly confused by the code. Is that because I'm bad at C? Or because the original code was obfuscated? Who knows.
In particular, I leave these two questions:
How does the c < 0 branch of the main loop get executed? c is only updated via getchar(), which won't read an EOF from stdin, unless I am missing something…
How does the timer affect updates? It clearly does, because removing the signal handler halts updates. But it does nothing else other than just resetting the timer itself! Somehow, it's what appears to make the code go to the c < 0 branch.
The text was updated successfully, but these errors were encountered:
I really miss a fast-drop key (the down key in some implementations) for situations where I want to “tuck” a piece under another, and so have to wait for the falling one to drop all the way down.
I confess that I tried doing it myself, but got utterly confused by the code. Is that because I'm bad at C? Or because the original code was obfuscated? Who knows.
In particular, I leave these two questions:
c < 0
branch of the main loop get executed?c
is only updated viagetchar()
, which won't read anEOF
fromstdin
, unless I am missing something…c < 0
branch.The text was updated successfully, but these errors were encountered: