Created
December 7, 2022 13:55
-
-
Save ungeskriptet/ea773af7b732b8586b1de9f97c4504ca to your computer and use it in GitHub Desktop.
Nintendo Wii U GamePad pin generator with timer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import threading | |
from time import sleep | |
from itertools import product | |
def generator(): | |
print("Press enter to continue the list") | |
for i in product(["♠", "♦", "♥", "♣"], repeat=4): | |
print(i) | |
input() | |
print("Done!") | |
def timer(): | |
while True: | |
sleep(170) | |
print("\nTime is up! Please press the sync button on the console again.") | |
if __name__ == "__main__": | |
t_generate = threading.Thread(target=generator) | |
t_timer = threading.Thread(target=timer) | |
t_generate.start() | |
t_timer.start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment