Share your repls and programming experiences

← Back to all posts
11
I made Tetris in a python terminal and its as bad as you think (need help with flickering screen)

The flickery screen is most likely caused by being forced by python to multithread in order to take input and still print to screen. Does anyone know any workarounds?

Commentshotnewtop
5

@K4JINX : It's unbelievable.....It's good as it is

4

Amazing! I love it, though it is hard to play it here and it is best to view the repl.

3

This is really cool! If repl.it were to increase the speed of the screen clearing, it would work perfectly. Try this in you're computer's console, and replace replt.clear with os.system("cls") if on windows, and os.system("clear") for linux.

1

@21natzil Oh gotcha. Thanks for the tip :)

2

This is perfection at its finest. Even as a spacecat who isn't even impressed easily, I most certainly am impressed!

2

I like the python dedication.

2

Oh man this is so cool! We're working on a new terminal that allows for unbuffered input. We're hoping to get it out in the next few weeks or so - then you won't have an issue with flickering anymore. But seriously, this is great!

1

@timmy_i_chen Thanks! I'll definetly update this once that update rolls out.