Skip to content

Instantly share code, notes, and snippets.

View sunsetsonwheels's full-sized avatar

Nam sunsetsonwheels

View GitHub Profile
from tkinter import Tk, messagebox, W, E, Menu
from tkinter.ttk import Button, Entry
from sys import exit
from threading import Thread
from webview import create_window
def start_thread(function):
t = Thread(target=function)
t.start()
@sunsetsonwheels
sunsetsonwheels / LookAndSaySequence.py
Created October 22, 2018 00:14
Look and Say Sequence (MCC 2018)
#Input the string here(renamed to stre to avoid conflict)
stre = "2447223522885338847799391928442276611848335958837719966312339882255338863322986779969779778814944544661225529911669955811799225855446671388642551449985992267743388558661966992211556676179983388776613688439947764433665885593885774425577115588933525533521557998899786292274366882775599664135997239932255811833687788226679977667733223366885133554882944244224411668442784883811483322833847755883328711278994955144937933225521772788542232992355448822992291886357692667733668559129353624244296699553221194433218851158677223377144557749481445445541411997799743311893447177188577615445518899116338822166112833448511266114557183366844898833977448453349984579944711557745533972116638844388233734485998844642554499223328866355883644699447755343443392211461625523374428854133966216688667744844811776633886655937734899799112361199377954993377495584433172882553369922556676998872255229811731447799332217722866177997443889338868552276477223661162334488548114998221199113764
@sunsetsonwheels
sunsetsonwheels / RiggedRockPaperScissors.py
Created October 22, 2018 00:04
RIgged Rock Paper Scissors (MCC 2018)
#Replace with the list of variables
games = ["O L", "O W", "[] D", "O L", "[] D", "O D", "[] L", "[] D", "O W", "[] D", "[] W", "[] D", "O W", "8< L", "8< L", "8< W", "O W", "O L", "O W", "[] L", "[] W", "[] L", "8< D", "[] L", "8< D", "O L", "O L", "[] W", "[] D", "O W", "O D", "[] L", "8< L", "8< D", "O L", "8< L", "[] D", "O L", "[] L", "[] W", "O D", "O L", "O L", "[] L", "[] W", "O L", "O D", "8< D", "8< D", "[] D", "O L", "[] D", "O D", "[] D", "O L", "O W", "8< W", "O W", "8< W", "[] D", "O L", "O W", "O D", "8< L", "O L", "[] D", "[] W", "[] L", "8< W", "O L", "[] D", "8< L", "O D", "[] W", "8< D", "8< D", "8< L", "O L", "[] W", "O L", "[] L", "[] W", "O D", "O L", "O D", "[] D", "[] W", "O L", "O D", "O D", "[] W", "[] L", "8< D", "[] D", "O D", "[] W", "[] W", "O D", "[] W", "O D", "O W", "8< W", "[] D", "[] W", "O W", "[] L", "8< D", "8< L", "[] D", "8< W", "8< D", "8< L", "O L", "8< L", "[] L", "O L", "8< L", "[] D", "O D", "[] L", "O L", "O L", "[] W", "8< L", "[] D", "[] D", "8< L", "8< D", "8<