diff --git a/Games/Dragon.py b/Games/Dragon.py new file mode 100644 index 0000000..1468375 --- /dev/null +++ b/Games/Dragon.py @@ -0,0 +1,45 @@ +import random +import time + +def displayIntro(): + print('You are in a land full of dragons. In front of you,') + print('you see two caves. In one cave, the dragon is friendly') + print('and will share his treasure with you. The other dragon') + print('is greedy and hungry, and will eat you on sight.') + print() + +def chooseCave(): + cave ='' + while cave != '1' and cave != '2': + print('Which cave will you go into? (1 or 2)') + cave = input() + + return cave + +def checkCave(chosenCave): + print('You approach the cave...') + time.sleep(2) + print('It is dark and spooky...') + time.sleep(2) + print('A large dragon jumps out in front of you! He opens his jaws and...') + print() + time.sleep(2) + + friendlyCave = random.randint(1, 2) + + if chosenCave == str(friendlyCave): + print('Gives you his treasure!') + else: + print('Gobbles you down in one bite!') + +playAgain = 'yes' +while playAgain == 'yes' or playAgain == 'y': + displayIntro() + + caveNumber = chooseCave() + + checkCave(caveNumber) + + print('Do you want to play again? (yes or no)') + playAgain = input() + diff --git a/InProgress/Spiro-1.py b/InProgress/Spiro-1.py new file mode 100644 index 0000000..fb8a6b0 --- /dev/null +++ b/InProgress/Spiro-1.py @@ -0,0 +1,8 @@ +import sys, random, argparse +import numpy as np +import math +import turtle +import random +from PIL import Image +from datetime import datetime +from fractions import gcd diff --git a/Spiro.py b/InProgress/Spiro.py similarity index 100% rename from Spiro.py rename to InProgress/Spiro.py diff --git a/README.md b/README.md index 67b0c15..b314999 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,21 @@ # Simple Stuff -Misc. simple Python projects for teaching myself basic concepts. +Misc. simple Python 3 projects for teaching myself basic concepts. + +Dragon: +Text-based game involving a dragon and two caves. + +DrawCircle: +Draws a circle. + +Guess the Number: +Makes you guess a number. + +Jokes: +Tells you a few jokes. TempConverter: A very simple temperature converter written in Python. +(written by me, not using a tutorial) + +