My Channel

Stupid Game - Another Game made in Python🎮🎮🎮 | Fun & Interesting | Uses Tkinter🐍🐍🐍

 Stupid Game

Hey Guys,

Today i will be sharing one of my other Python Game that i made which is named as 'Stupid Game' for it's stupidity in the Difficulty. As it's name says don't be fooled that it will be easy, it's actually a Hard Game to finish.

Click here to visit my other Game: ForeGame.

Now, onto the Post.



Stupid Game

It's a Game of 10 Questions with tricky levels to proceed. You must finish all of them to win. It uses both Tkinter and the Python Terminal for the Output. It has tricky Questions you must Answer. I will be sharing the Code now and will be explaining it later in some other posts.

Stupid Game is a game inspired by a Poki (A free Game Website)  game called The Impossible Quiz. I wanted to create a Game that is so hard to finish just as the Impossible Quiz and wanted to give a try. I took about a Week with 2 Tries in making this Game. I first made it, then erased it due to failure and had to do it again.

Now, Let's Get into the Code. I Hope you will be Running the Program on your PC on your own Python Editor and have fun with it.

The Code:

import tkinter as tk
from tkinter import *
from tkinter import ttk, Entry
import time
from PIL import Image
import random
from tkinter import messagebox
import webbrowser,pyttsx3

def Game():
window = tk.Tk()
window.title("Stupid Game")
width = window.winfo_screenwidth()
height = window.winfo_screenheight()
window.geometry("%dx%d" % (width, height))



Welcome = tk.Label(text="Welcome to the Game. ",font="Comfortaa,1000",foreground = "#964B00")
Welcome.pack()
window.after(3000, lambda: window.destroy())

Welcome1 = tk.Label(text="Blogs By Michel Presents... ",font="Comfortaa,1000",foreground = "#964B00")
Welcome1.pack()
window.after(3000, lambda: window.destroy())

Welcome2 = tk.Label(text="Stupid Game",font="Comfortaa,1000",foreground = "#964B00")
Welcome2.pack()
window.after(3000, lambda: window.destroy())

window.mainloop()

time.sleep(1)

Window = tk.Tk()
Window.title("Stupid Game")
width = Window.winfo_screenwidth()
height = Window.winfo_screenheight()
Window.geometry("%dx%d" % (width, height))

def instructions():
tk.messagebox.showinfo(title = "Instructions",message = """1.Play the Game Wisely to Win.
2.You must complete all the questions correctly to win.
3.Some Questions may apper in the terminal while some in Tkinter Window.""")

def help():
tk.messagebox.showinfo(title="Help", message="""Answer all the Questions Correctly to Win!""")

def about():
tk.messagebox.showinfo(title = "About",message = """This Game is Created by the Famous Blogger Blogs By Michel.
Vist https://blogsbymichel.blogspot.com/ to know more...!""")
time.sleep(1)
webbrowser.open("https://blogsbymichel.blogspot.com/")

def start():
Window.destroy()
NAME = tk.Tk()
NAME.title("Stupid Game")
width = NAME.winfo_screenwidth()
height = NAME.winfo_screenheight()
NAME.geometry("%dx%d" % (width, height))


Name = tk.Label(text = "Enter your Name Below...")
Name.pack()
Name1: Entry = tk.Entry()
Name1.pack()

def Submit():
NAME.destroy()
time.sleep(1)

Window1 = tk.Tk()
Window1.title("Stupid Game")
width = Window1.winfo_screenwidth()
height = Window1.winfo_screenheight()
Window1.geometry("%dx%d" % (width, height))
Welcome = tk.Label(text = "Hellowww, Welcome to the Game! ")
Welcome.pack()
time.sleep(1)
img = Image.open(r"C:\\Users\miche\dropbox\red.png")
img.show()
time.sleep(2)
Q1 = tk.Label(text = "Q.1.What Colour is this? ")
Q1.pack()

def Red():
Window1.destroy()
time.sleep(1)
Game()
def Green():
Window1.destroy()
time.sleep(1)
Game()
def Blue():
Window1.destroy()
time.sleep(1)
Game()
def Black():
Window1.destroy()
time.sleep(1)
Window2 = tk.Tk()
Window2.title("Stupid Game")
width = Window2.winfo_screenwidth()
height = Window2.winfo_screenheight()
Window2.geometry("%dx%d" % (width, height))

def Tiger():
Window2.destroy()
time.sleep(1)
Game()
def Fifty():
Window2.destroy()
time.sleep(1)
Game()
def Peter():
Window2.destroy()
time.sleep(1)
Game()
def Sam():
Window2.destroy()
time.sleep(1)
Window3 = tk.Tk()
Window3.title("Stupid Game")
width = Window3.winfo_screenwidth()
height = Window3.winfo_screenheight()
Window3.geometry("%dx%d" % (width, height))

def Six():
Window3.destroy()
time.sleep(1)
Game()
def Fan():
Window3.destroy()
time.sleep(1)
Game()
def Entertainment():
Window3.destroy()
time.sleep(1)
Game()
def Batman():
Window3.destroy()
time.sleep(1)
Days = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]
Q4 = input("Q.4.Guess the Day today? ")
if Q4 == random.choice(Days):
Window4 = tk.Tk()
Window4.title("Stupid Game")
width = Window4.winfo_screenwidth()
height = Window4.winfo_screenheight()
Window4.geometry("%dx%d" % (width, height))

BBM = tk.Label(text = "Q.5.Enter 'Blogs By Michel' to Proceed (An Easy one dude...)")
BBM.pack()
Enter = tk.Entry()
Enter.pack()
def Submit1():
if Enter.get() == "Blogs By Michel":
Window5 = tk.Tk()
Window5.title("Stupid Game")
width = Window5.winfo_screenwidth()
height = Window5.winfo_screenheight()
Window5.geometry("%dx%d" % (width, height))

def one():
Window5.destroy()
time.sleep(1)
Game()

def two():
Window5.destroy()
time.sleep(1)
Game()

def three():
Window5.destroy()
time.sleep(1)
Game()

def four():
Window5.destroy()
time.sleep(1)
Window6 = tk.Tk()
Window6.title("Stupid Game")
width = Window6.winfo_screenwidth()
height = Window6.winfo_screenheight()
Window6.geometry("%dx%d" % (width, height))

def Buyjus():
Window6.destroy()
time.sleep(1)
Game()

def Byjus():
Window6.destroy()
time.sleep(1)
Voice = pyttsx3.init()

Voice.say(
"pythonnerdcrazyshipblogsbymichel.blogspot.com//qwertyuiopasdfghjklzxcvbnm//qwerty")
Voice.runAndWait()
Window7 = tk.Tk()
Window7.title("Stupid Game")
width = Window7.winfo_screenwidth()
height = Window7.winfo_screenheight()
Window7.geometry("%dx%d" % (width, height))

Q8 = tk.Label(
text="Q.8.Enter what the Voice had said without any Spaces [Hoped you would have Listened Carefully].")
Q8.pack()
Voice1 = tk.Entry()
Voice1.pack()
Voice2 = "pythonnerdcrazyshipblogsbymichel.blogspot.com//qwertyuiopasdfghjklzxcvbnm//qwerty"
def Submit2():
if Voice1.get() == Voice2:
Window7.destroy()
time.sleep(1)
Window8 = tk.Tk()
Window8.title("Stupid Game")
width = Window8.winfo_screenwidth()
height = Window8.winfo_screenheight()
Window8.geometry("%dx%d" % (width, height))

Q9 = tk.Label(text = "Q.9. How many 'w's were there in the Welcome Part? ")
Q9.pack()
Answer = tk.Entry()
Answer.pack()
def Submit3():
if Answer.get() == "3":
Window8.destroy()
time.sleep(1)
Guess1 = int(input("Q.10.Guess the Number: "))
Num1 = [0,1,2,3,4,5,6,7,8,9,10]
Num2 = [0,1,2,3,4,5,6,7,8,9,10]
Op = ["+","-","*","/"]
Op1 = random.choice(Op)
N1 = random.choice(Num1)
N2 = random.choice(Num2)
if Op1 == "+":
Answers = N1 + N2
elif Op1 == "-":
Answers = N1 - N2
elif Op1 == "*":
Answers = N1 * N2
elif Op1 == "/":
Answers = N1/N2
if Guess1 == Answers:
Window9 = tk.Tk()
Window9.title("Stupid Game")
width = Window9.winfo_screenwidth()
height = Window9.winfo_screenheight()
Window9.geometry("%dx%d" % (width, height))

def play_again():
Window9.destroy()
time.sleep(1)
Game()
def end():
Bye = tk.Label(text = "Bye! Hope you will Come back Soon 😎👋🏽👋🏽! ")
Bye.pack()
def Feedback():
Window10 = tk.Tk()
Window1.title("Stupid Game")
width = Window10.winfo_screenwidth()
height = Window10.winfo_screenheight()
Window10.geometry("%dx%d" % (width, height))

Feedback = tk.Label(text = "Give your Feedback Here! ")
Feedback.pack()
FB = tk.Entry()
FB.pack()
def Good():
if "Good" in FB.get():
Window10.destroy()
time.sleep(1)
Game()

else:
Window10.destroy()
Submit4 = ttk.Button(text = "Submit",command = Good())
Submit4.pack()
Window10.mainloop()
Feedback = ttk.Button(text = "Feedback",command = Feedback)
Feedback.pack()
End = ttk.Button(text = "End Game",command = end)
End.pack()
Play_Again = ttk.Button(text = "Play Again? ",command = play_again)
Play_Again.pack()

Window9.mainloop()

else:
Game()
else:
Window8.destroy()
time.sleep(1)
Game()


else:
Window7.destroy()
time.sleep(1)
Game()



Submit3 = ttk.Button(text="Submit", command=Submit3)
Submit3.pack()
Window8.mainloop()
Submit2 = ttk.Button(text = "Submit",command = Submit2)
Submit2.pack()
Window7.mainloop()

def Juiceapp():
Window6.destroy()
time.sleep(1)
Game()

def Byjus1():
Window6.destroy()
time.sleep(1)
Game()

Q7 = tk.Label(text="Q.7.Guess the App that Gives Juice? ")
Q7.pack()
Buyjus = ttk.Button(text="Buyjus", command=Buyjus)
Buyjus.pack()
Byjus = ttk.Button(text="Byjus", command=Byjus)
Byjus.pack()
Juiceapp = ttk.Button(text="Juice App", command=Juiceapp)
Juiceapp.pack()
Byjus1 = ttk.Button(text="Byjus'", command=Byjus1)
Byjus1.pack()

Window6.mainloop()

Choose = tk.Label(text="Q.5.Choose a Button: ")
Choose.pack()
One = ttk.Button(text="?", command=one)
One.pack()
Two = ttk.Button(text="?", command=two)
Two.pack()
Three = ttk.Button(text="?", command=three)
Three.pack()
Four = ttk.Button(text="?", command=four)
Four.pack()

Window5.mainloop()
else:
Window4.destroy()
time.sleep(1)
Game()
Submit1 = ttk.Button(text = "Submit",command = Submit1)
Submit1.pack()

Window4.mainloop()
else:
Game()

Q3 = tk.Label(text = "Q.3.Why are Cricket Players a Superhero? ")
Q3.pack()
Six = ttk.Button(text = "Becasue they Hit Sixes...",command = Six)
Six.pack()
Batman = ttk.Button(text="Becasue they are Batman...", command=Batman)
Batman.pack()
Entertainment = ttk.Button(text="Becasue they Entertain...", command=Entertainment)
Entertainment.pack()
Fan = ttk.Button(text="Becasue they make the Fans enjoy the Match...", command=Fan)
Fan.pack()

Window3.mainloop()

Q2 = tk.Label(text = """Q.2.Sam's Father has 4 Sons. Twenty, Thirty, Forty are the names.
What is the 4th Sons Name? """)
Q2.pack()
Fifty = ttk.Button(text="Fifty", command=Fifty)
Fifty.pack()
Sam = ttk.Button(text="Sam", command=Sam)
Sam.pack()
Peter = ttk.Button(text="Peter", command=Peter)
Peter.pack()
Tiger = ttk.Button(text="Tiger", command=Tiger)
Tiger.pack()
Window2.mainloop()

Red = ttk.Button(text = "Red",command = Red)
Red.pack()
Green = ttk.Button(text="Green", command=Green)
Green.pack()
Blue = ttk.Button(text="Blue", command=Blue)
Blue.pack()
Black = ttk.Button(text="Black", command=Black)
Black.pack()

Window1.mainloop()


Submit = ttk.Button(text = "Submit",command = Submit)
Submit.pack()

NAME.mainloop()


SG = tk.Label(text = "🎮 Stupid Game 🎮",fg = "brown",font = 300)
SG.pack()
Start = ttk.Button(text="Start", command=start,)
Start.pack(side = "top")
Instructions = ttk.Button(text="Instructions", command=instructions,)
Instructions.pack(side = "top")
Help = ttk.Button(text="Help", command=help)
Help.pack(side = "top")
About = ttk.Button(text="About", command=about,)
About.pack(side="top")

Window.mainloop()

Game()

Hope you liked the Game and hope you will Run it...

Please View, Read, Share, Follow, Subscribe, Comment, Review

Please Share this Blog Post with 20 of your Friends and Family

By the Blog Author.

Post a Comment

0 Comments