Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions Games/Dragon.py
Original file line number Diff line number Diff line change
@@ -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()

8 changes: 8 additions & 0 deletions InProgress/Spiro-1.py
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)