Compare commits
1 Commits
9172cced29
...
d62667a652
Author | SHA1 | Date | |
---|---|---|---|
d62667a652 |
@ -5,8 +5,7 @@ from time import sleep
|
||||
|
||||
def erratic_movement(screen_width, screen_height):
|
||||
"""
|
||||
Moves the cursor to a random position with the screen's
|
||||
width and height as an upper bound
|
||||
Moves the cursor to a random position with the screen's width and height as an upper bound
|
||||
"""
|
||||
move(
|
||||
randbelow(screen_width), randbelow(screen_height),
|
||||
@ -15,8 +14,7 @@ def erratic_movement(screen_width, screen_height):
|
||||
|
||||
def main():
|
||||
"""
|
||||
Calls the movement function in an infinite loop,
|
||||
with a random delay between each call
|
||||
Calls the movement function in an infinite loop, with a random delay between each call
|
||||
"""
|
||||
screen_width = 800
|
||||
screen_height = 600
|
||||
|
Loading…
Reference in New Issue
Block a user