Skip to content

Instantly share code, notes, and snippets.

@MikePandel
MikePandel / Python - Hangman [GUI]
Created February 23, 2020 17:20
Python - Hangman [GUI]
#!/usr/bin/env python3
import string
import os # Used for clearing the term window
import time # Used for 5 second buffer at the end of the game
import random # To pick random word from list
from tkinter import * # GUI
import tkinter as tk # GUI
from tkinter import messagebox # GUI Message Box
'''
@MikePandel
MikePandel / Python - Hangman [Console]
Created February 23, 2020 17:20
Python - Hangman [Console]
#!/usr/bin/env python3
import string
import os # Used for clearing the term window
import time # Used for 5 second buffer at the end of the game
import random # To pick random word from list
class hangman:
# Var
played_word = "" # Word in play
gameboard = [] # Playing game board