Skip to content

Instantly share code, notes, and snippets.

@ungeskriptet
Created December 7, 2022 13:55
Show Gist options
  • Save ungeskriptet/ea773af7b732b8586b1de9f97c4504ca to your computer and use it in GitHub Desktop.
Save ungeskriptet/ea773af7b732b8586b1de9f97c4504ca to your computer and use it in GitHub Desktop.
Nintendo Wii U GamePad pin generator with timer
#!/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