Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[pull] master from avinashkranjan:master #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
pull merged 42 commits into Uncodedtech:master from avinashkranjan:master
Apr 15, 2021
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
fb7414a
added bubble-shooter
syamala27 Apr 3, 2021
5074b78
added Uthopianaudio file
syamala27 Apr 3, 2021
0c6086c
Update README.md
syamala27 Apr 3, 2021
de3ecdf
Update README.md
syamala27 Apr 3, 2021
6bb6418
Update README.md
syamala27 Apr 3, 2021
4b50c63
Delete Bubble Shooter Game directory
syamala27 Apr 6, 2021
40ffc48
Added bubble Shooter game
syamala27 Apr 6, 2021
4cdd7ff
Delete Bubble Shooter Game directory
syamala27 Apr 6, 2021
31423e2
Updated the bubble shooter game!
syamala27 Apr 6, 2021
d109536
Add tarot_card_reader.py
Akshu-on-github Apr 8, 2021
4dc0e13
Add README.md
Akshu-on-github Apr 8, 2021
7dd93b3
Modify README.md to fit Template
Akshu-on-github Apr 8, 2021
059d437
Update SCRIPTS.md
Akshu-on-github Apr 8, 2021
9553fe8
Add files via upload
ayush-raj8 Apr 8, 2021
f1e1590
Create README.md
ayush-raj8 Apr 8, 2021
49b3709
Update README.md
ayush-raj8 Apr 8, 2021
9f35c95
Update README.md
ayush-raj8 Apr 8, 2021
e9917ae
Update README.md
ayush-raj8 Apr 8, 2021
71bf35a
Delete main.py
ayush-raj8 Apr 9, 2021
0bc7f6e
Add files via upload
ayush-raj8 Apr 9, 2021
e6e0ee6
Update README.md
ayush-raj8 Apr 9, 2021
bcd09b2
Image viewing
Amit366 Apr 10, 2021
8b4dc47
Update main.py
ayush-raj8 Apr 10, 2021
f4323a1
#868 PDF reoder added
iamakkkhil Apr 10, 2021
900ce45
Readme Updated
iamakkkhil Apr 10, 2021
0940721
#867 Image background subractor added
iamakkkhil Apr 10, 2021
d892fa2
Update
Amit366 Apr 12, 2021
a9316c1
Image viewing gui
Amit366 Apr 12, 2021
6e9a89f
Create Readme.md
syamala27 Apr 12, 2021
399c0e4
Update Readme.md
syamala27 Apr 12, 2021
ba824f5
Update script.py
Amit366 Apr 13, 2021
abcaee5
Undo update
Akshu-on-github Apr 14, 2021
43d6c92
Implement file handling
Akshu-on-github Apr 14, 2021
47b3aa6
Add tarot.txt
Akshu-on-github Apr 14, 2021
1f54536
Add root path
Akshu-on-github Apr 15, 2021
8fbeed0
Modify file handle, update documentation
Akshu-on-github Apr 15, 2021
617478e
Merge pull request #816 from syamala27/master
avinashkranjan Apr 15, 2021
f9557a9
Merge pull request #848 from Akshu-on-github/tarot-reader
avinashkranjan Apr 15, 2021
521e1c4
Merge pull request #852 from ayush-raj8/master
avinashkranjan Apr 15, 2021
9fb8c95
Merge pull request #874 from iamakkkhil/iamakkkhil-patch-1
avinashkranjan Apr 15, 2021
16f8540
Merge pull request #879 from iamakkkhil/iamakkkhil-patch-2
avinashkranjan Apr 15, 2021
47bd8e7
Merge pull request #888 from Amit366/Image
avinashkranjan Apr 15, 2021
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
Prev Previous commit
Next Next commit
Implement file handling
  • Loading branch information
Akshu-on-github authored Apr 14, 2021
commit 43d6c92cc02deff2c69ba993246e6639ca67b8cd
98 changes: 11 additions & 87 deletions Tarot Reader/tarot_card_reader.py
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,88 +1,12 @@
import random


# tarot deck of 78 cards and 'predictions'
tarot_deck = [
"The Fool: \n\tExperience is your best teacher",
"The Magician: \n\tLife is Magic... do you control yours?",
"The High Priestess: \n\tStay away from worldly affairs",
"The Empress: \n\tThe world bows before you, you bow to none",
"The Emperor: \n\tThe world bows before you, you bow to none",
"The Hierophant: \n\tFollow the 4rc@n3 principles",
"The Lovers: \n\tI've never writ, nor no man never loved",
"The Chariot: \n\tYou'll get to see your dream ride soon",
"Strength: \n\tYou are stong enough",
"The Hermit: \n\tThe World hurtles forward, yet you remain uncaught in its riptide",
"Wheel of Fortune: \n\tYour luck today depends on whether the first living thing you see is a plant or an animal",
"Justice: \n\tThe Mills of God grind slow but fine",
"The Hanged Man: \n\tThat's rough buddy",
"Death: \n\tLife's younger sibling brushed your shoulder just now, but you're fine- it was just lint",
"Temperance: \n\tThe World needs more of it, and of you",
"The Devil: \n\tGet over here so I can prove that you exist",
"The Tower: \n\tExchange places with the king",
"The Star: \n\tLike diamonds in the sky~",
"The Moon: \n\tYou might find that your enthusiasm waxes and wanes, but that's alright",
"The Sun: \n\tYou're the light of someone's life",
"Judgement: \n\t*judges you in spanish*",
"The World: \n\tThese hands could hold you but it'll never be enough~",
"Ace of Wands: \n\tYou're a wizard, Harry",
"Two of Wands: \n\tYour sibling is pretty cool",
"Three of Wands: \n\tTry to avoid tournaments for the time being",
"Four of Wands: \n\tFind trouble and make it double",
"Five of Wands: \n\tExpecto Patronum",
"Six of Wands: \n\tDraw your wand",
"Seven of Wands: \n\tIf you see a noseless man with the complexion of crushed eggshells, RUN",
"Eight of Wands: \n\tI'm surprised you got this tbh... I'll let you in on a secret - Seven didn't actually eat Nine",
"Nine of Wands: \n\tOh, the card you're looking for is 3 quarters to the right",
"Ten of Wands: \n\tOh, the card you're looking for is a quarter to the left",
"Page of Wands: \n\tYou're going to be called to the Head's Office - you shouldn't have messed with alchemy unsupervised",
"Knight of Wands: \n\tYou just had to buy that giant chess set, didn't you?",
"Queen of Wands: \n\tWith great power...",
"King of Wands: \n\tWith great power...",
"Ace of Cups: \n\tIf you ever see a trophy in the middle of a hedge maze...",
"Two of Cups: \n\tBottoms up, friend!",
"Three of Cups: \n\tTwo's company, three's better company!",
"Four of Cups: \n\tThe more the merrier!",
"Five of Cups: \n\tYeah, social distancing is important",
"Six of Cups: \n\tNow that's one too many",
"Seven of Cups: \n\tTwo's company enough",
"Eight of Cups: \n\tTake a break",
"Nine of Cups: \n\tIf three's a crowd...",
"Ten of Cups: \n\tStop it now",
"Page of Cups: \n\tI don't think you should drive until you clear your head",
"Knight of Cups: \n\tPut that sword down right this instant",
"Queen of Cups: \n\tDon't offend anyone influential",
"King of Cups: \n\tDon't get on your gaurdians' bad side",
"Ace of Swords: \n\tDraw your sword",
"Two of Swords: \n\tEn garde",
"Three of Swords: \n\tAllez!",
"Four of Swords: \n\tParry!",
"Five of Swords: \n\tLearn enough to be dangerous",
"Six of Swords: \n\tGet yourself a teacher",
"Seven of Swords: \n\tParlay!",
"Eight of Swords: \n\tDo something nice for a stranger",
"Nine of Swords: \n\tBe chivalrous",
"Ten of Swords: \n\tI'm not asking for much, just be nice",
"Page of Swords: \n\tThe pen is mightier",
"Knight of Swords: \n\tLive by the code you're honour-bound to follow",
"Queen of Swords: \n\tPledge alliance",
"King of Swords: \n\tPledge alliance",
"Ace of Coins: \n\tYou now have an iron nail",
"Two of Coins: \n\tFlip a coin",
"Three of Coins: \n\tFor want of a nail...",
"Four of Coins: \n\tYou now have a paperclip",
"Five of Coins: \n\tSleep well, it is a blessing",
"Six of Coins: \n\tRoll a die",
"Seven of Coins: \n\tYou're a lucky one",
"Eight of Coins: \n\tYou're like a pineapple tree - i.e. you're a factual error",
"Nine of Coins: \n\tAccessory fruit(affectionate)",
"Ten of Coins: \n\t<insert cool fruit fact here>",
"Page of Coins: \n\tYou're due for a promotion soon",
"Knight of Coins: \n\tTreat your subordinates",
"Queen of Coins: \n\tYou're worth your weight in gold",
"King of Coins: \n\tYou're worth your weight in gold"
]

# get tarot deck of 78 cards and 'predictions' from tarot.txt
file_handle = open("tarot.txt", "r")
cards = file_handle.readlines()
tarot_deck = []
for card in cards:
tarot_deck.append(card)

def fin():
print("Whichever your choice was...")
Expand Down Expand Up @@ -111,12 +35,12 @@ def youve_chosen_yes():
print()
print("Your second card is...")
pick_card2 = random.randint(0, 78)
print(tarot_deck[pick_card2] if pick_card2 != pick_card1 else tarot_deck[random.randint(0, 78)])
print(tarot_deck[pick_card2] if pick_card2 != pick_card1 else tarot_deck[random.randint(0, 78)])
input(">> press enter")
print()
print("And your third and final card is...")
pick_card3 = random.randint(0, 78)
print(tarot_deck[pick_card3] if pick_card3 != pick_card1 and pick_card3 != pick_card2 else tarot_deck[random.randint(0, 78)])
print(tarot_deck[pick_card3] if pick_card3 != pick_card1 and pick_card3 != pick_card2 else tarot_deck[random.randint(0, 78)])
input(">> press enter")
print()
fin()
Expand Down Expand Up @@ -147,7 +71,7 @@ def youve_chosen_neither():
fin()


# Introductory text
# Introductory lines
print("In this black box, you read white words")
input(">> press enter")
print("Words that might warn you of danger...")
Expand All @@ -158,12 +82,12 @@ def youve_chosen_neither():
input(">> press enter")
print()


# Choice made here
# Choice to be made here
print("Do you dare draw a card?")
ch = input(">> enter Y/N: ")
print("\nInteresting...")

# Driver code
if ch.lower() == 'y':
youve_chosen_yes()

Expand Down

AltStyle によって変換されたページ (->オリジナル) /