Jumble Word Game with GUI using Python | Fun Beginner Python Project!

preview_player
Показать описание
Welcome to this fun and beginner-friendly Python project! In this video, we'll build a Jumble Word Game using Tkinter GUI. It's a simple word puzzle where players unscramble letters to guess the correct word.

🎮 What you'll learn: ✅ Basic GUI with Tkinter
✅ Shuffling words using Python logic
✅ Handling input and buttons
✅ Checking correct answers
✅ Keeping track of score

Perfect for Python beginners looking to practice GUI development and game logic in a fun way!

📌 Tools Used:

Python (3.x)

Tkinter (for GUI)

random module

********************CODE*********************
import random
# tkinter : use for GUI
import tkinter as tk
from tkinter import messagebox

word_list = ["python", "engineering", "computer", "message", "library", "terminal", "science","cyber","assignment","organization"," algorithms"," management"," programming"]

def choose_word():
return word

def jumble_word(word):

# GUI setup
root = tk.Tk()

score = 0
current_word = choose_word()
jumbled_word = jumble_word(current_word)

# widgets
label = tk.Label(root, text = f"unscramble this word \n {jumbled_word}" , font=( "arial" ,16))

# pady = padding in y direction

entry = tk.Entry(root, font=("arial", 14))

score_label = tk.Label(root, text =f"SCORE:{score}", font = ("Arial",12))

def check_answer():
global score , current_word, jumbled_word

score +=1

else :

current_word = choose_word()
jumbled_word = jumble_word(current_word)

# submit button
btn = tk.Button(root, text ="SUBMIT", command=check_answer, font =("Arial",12))

------------------------------------------------------------------------

🔔 Don’t forget to like, share, and subscribe for more Python projects and tutorials!

#python #pythonproject #tkinter #beginnerpython #jumblegame #programming
Рекомендации по теме
visit shbcf.ru