Magic 8-ball
Started by Allelujah

Posts:40
Tokens:
Reputation: 0
Member
Posts:40
Joined:Feb 2017
Reputation: 0
116
Tokens:
10-11-2017, 10:40 AM
Made a magic 8-ball...

If you're bored it's a good time passer or if you're thinking about making a(n) impulse decision it can help there as well!

[Image: Er2T5xjrRRmD0aTCZ6AKnA.png]
(I am Techett)

For python coders: https://github.com/techett/Magic-8-ball
For non-coders(compiled to run as a .exe): http://www.filedropper.com/magic-8ball

VIRUSTOTAL: https://www.virustotal.com/#/file/7138b6.../detection

You are free to do as you wish with this, as long as you do NOT profit from it. I hope you enjoy this very, very simple, toy. That's all it is. Easy to make, but some people may have forgotten about the Magic 8Ball.

Posts:33
Tokens:
Reputation: 0
Member
Posts:33
Joined:Jun 2017
Reputation: 0
73
Tokens:
10-11-2017, 11:03 AM
Good job!, I will have to take a look at it.
[Image: uATyhc.jpg]

Posts:230
Tokens:
Reputation: 4
Innovative
Emerald
Posts:230
Joined:Mar 2017
Reputation: 4
250
Tokens:
EmeraldHalloween Event 2017One Week Online
10-11-2017, 11:29 AM
Haha I remember learning how to do this in my Computer Programming class in High School, good times.
[Image: CveoRKu.png]

Posts:40
Tokens:
Reputation: 0
Member
Posts:40
Joined:Feb 2017
Reputation: 0
116
Tokens:
10-11-2017, 02:50 PM
(10-11-2017, 11:29 AM)Spitfire Wrote: Haha I remember learning how to do this in my Computer Programming class in High School, good times.

I never took programming classes... I wish I had, but I feel that I'm learning more on my own tbh.

Posts:164
Tokens:
Reputation: 7
スーイツ
Elite
Posts:164
Joined:Apr 2017
Reputation: 7
333
Tokens:
10-11-2017, 08:17 PM (This post was last modified: 10-11-2017, 09:26 PM by Sweets.)
This could be done so much better.

Code:
'''

Magic 8-Ball
by Techett

'''
import random
import time

responses = [
    "Ask again later.",
    "Yes.",
    "I don't think so.",
    "For sure!",
    "My sources say no.",
    "Don't count on it.",
    "How about not?",
    "YES YES YES!!!",
    "Don't hold your breath."
]

if __name__ == "__main__":

    print('This is a magic 8-Ball application.')
    print('Coded by Techett.') # You can keep the credit.
    print('Build v1.00\n')

    try:
        while True:
            print("What is your question?")
            input()
            print(random.choice(responses))
            time.sleep(5)
    except KeyboardInterrupt:
        print("Good bye.")
pls rember that wen u feel scare or frigten never forget ttimes wen u feeled happy wen day is dark always rember happy day

Posts:40
Tokens:
Reputation: 0
Member
Posts:40
Joined:Feb 2017
Reputation: 0
116
Tokens:
10-11-2017, 09:10 PM (This post was last modified: 10-11-2017, 09:15 PM by Allelujah.)
(10-11-2017, 08:17 PM)Sweets Wrote: This could be done so much better.

Code:
'''

Magic 8-Ball
by Techett

'''
import random

responses = [
    "Ask again later.",
    "Yes.",
    "I don't think so.",
    "For sure!",
    "My sources say no.",
    "Don't count on it.",
    "How about not?",
    "YES YES YES!!!",
    "Don't hold your breath."
]

if __name__ == "__main__":

    print('This is a magic 8-Ball application.')
    print('Coded by Techett.') # You can keep the credit.
    print('Build v1.00\n')

    try:
        while True:
            print("What is your question?")
            input()
            print(random.choice(responses))
            time.sleep(5)
    except KeyboardInterrupt:
        print("Good bye.")


Could be, but it's not. Thanks I guess.

P.S. You forgot to import time.

Posts:230
Tokens:
Reputation: 4
Innovative
Emerald
Posts:230
Joined:Mar 2017
Reputation: 4
250
Tokens:
EmeraldHalloween Event 2017One Week Online
10-11-2017, 09:23 PM
(10-11-2017, 02:50 PM)Allelujah Wrote:
(10-11-2017, 11:29 AM)Spitfire Wrote: Haha I remember learning how to do this in my Computer Programming class in High School, good times.

I never took programming classes... I wish I had, but I feel that I'm learning more on my own tbh.

Like wise, unless you'll only learn the basics while you're starting at basic level classes. You'll only ever learn anything in advance classes and even then, you're really just better off on your own as you can cover whatever you really wanna do the most.
[Image: CveoRKu.png]





Users browsing this thread: 1 Guest(s)