EmilZach / Sentence-Crusher

A Python game for crushing sentences.
0 stars 1 forks source link

graphics.countdown_321() not showing correctly in some enviroments #5

Closed Arxcis closed 8 years ago

Arxcis commented 8 years ago

Issue description: I noen miljøeer som spillet blir kjørt i, så funker ikke animasjonen slik som den skal. Plutselig kommer alle 3 tallene på en gang, istedet for at hvert tall kommer hvert sekund.

Arxcis commented 8 years ago

This happens because time.sleep() dosen't work properly. I just figured out that this could be caused by the built in python buffering. If we somehow could turn off the buffering.

Arxcis commented 8 years ago

http://stackoverflow.com/questions/107705/disable-output-buffering

Here is an explanation

technocake commented 8 years ago

The code relevant for this issue is here: https://github.com/EmilZach/Sentence-Crusher/blob/master/Game/graphics.py#L45-L52

EmilZach commented 8 years ago

I need someone to test the program in other environments. I don't run Linux or Mac, so I can't check if it works.

Arxcis commented 8 years ago

Its not just different operating systems , but also if you run in GIT-bash or cmd or inside PyCharms

  1. mar. 2016 10.28 p.m. skrev "Emil Teigland Zachariassen" < notifications@github.com>:

I need someone to test the program in other environments. I don't run Linux or Mac, so I can't check if it works.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/EmilZach/Sentence-Crusher/issues/5#issuecomment-202141088

EmilZach commented 8 years ago

Oh, so you meant terminal environments. I can test on Bash since I don't use PyCharm.

EmilZach commented 8 years ago

Can confirm it works with cmd and Bash. I'll mark it as closed unless the issue persists.