Skip to content

Instantly share code, notes, and snippets.

View Joshbeyer's full-sized avatar

Josh Beyer Joshbeyer

  • Bethalto IL, USA
View GitHub Profile
@Joshbeyer
Joshbeyer / hangman.py
Created August 4, 2021 05:38
Simple hangman game
import random
word_list = ["aardvark", "baboon", "camel"]
chosen_word = random.choice(word_list)
word_length = len(chosen_word)
print(f'Pssst, the solution is {chosen_word}.')
display = []
for _ in range(word_length):
@Joshbeyer
Joshbeyer / text-based-rpg
Created August 3, 2021 08:32
testing out python with a simple game
import os #For keeping console clean
os.system('cls') #Windows
os.system('clear') #Linux
#clearing console function
def clear_():
os.system('cls') #Windows
os.system('clear') #linux
print('''
*******************************************************************************
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<p></p>