From 2a17f94554fa8339fff0652beec8096ca3b4098c Mon Sep 17 00:00:00 2001 From: Wolfgang Nowak Date: Mon, 13 Nov 2023 13:47:02 +0100 Subject: [PATCH] Parabel +korrekte params --- parabeltest.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/parabeltest.py b/parabeltest.py index 06da83d..1b3de89 100755 --- a/parabeltest.py +++ b/parabeltest.py @@ -8,10 +8,11 @@ from time import sleep # Randomly choose a cow cows = "🐵🐒🦍🦧🐕🐯🦝🐩🐅🐴🐎🦄🦌🐗🐂🐃🐄🐪🐫🦙🦒🐹🦘🦡🐧🕊️🦅🦆🦉🐍🦎🐊🦜🦚🦩🐲🐉🦕" -cowslength = len(cows) -# cow = cows[random.randint(0, cowslength - 1)] +cowlistlength = len(cows) +cow = cows[random.randint(0, cowlistlength - 1)] # cow = "🐄" -cow = "*" +# cow = "*" +cowlength=len(cow) # Needed: find our screensize termsize_xy = os.get_terminal_size() @@ -48,7 +49,7 @@ print(xsteps) a = input("CR please:") curpos(1, ymax) -for x in range(1, xsteps): +for x in range(1, xsteps, cowlength): # parameters to fit the screen y = (x - xmitte) ** 2 /xmitte if y < ymax: