SlideShare a Scribd company logo
Final-Submission Report For Python Programming (INT213)
{“PUZZLE GAME.”}
Team Members
1. Name: Rohit Yadav Reg No.: 12111323 Roll No.: B57
2.Name: Keshav Kumar Reg No.: 121003252 Roll No.: A08
3.Name: Sachin Rana Reg No.: 12108638 Roll No.: A33
Program: B.Tech (CSE)
Semester: Third
School
School Of Computer Science and Engineering
Submitted to: Nidhi Arora Date: 09 November 2022
LOVELY PROFESSINOAL UNIVERSITY
Introduction:-
Designing a Puzzle Game in which, various letters will
be shown in a table and he/she can move horizontally,
vertically or diagonally in order to make meaningful words.
In this project we are going to develop a puzzle game which is GUI based
using python programming language.
Word games (also called word game puzzles) are spoken or board games
often designed to test ability with language or to explore its properties.
Word games are generally used as a source of entertainment, but can
additionally serve an educational purpose. Young children can enjoy
playing games such as Hangman, while naturally developing important
language skills like spelling. While Hangman is a seriously dark game,
what we like to focus on is the development of the children. Researchers
have found that adults who regularly solved crossword puzzles, which
require familiarity with a larger vocabulary, had better brain function
later in life.
Project Description
This game will consist of table with many alphabets set in a random order
and many English meaningful words will be hidden between them. User
have to find them one by one as soon as possible. At the top game, name
will be written there followed by, computer will ask the user to enter
his/her name in the next step. Then we will have table of alphabets and
background will be of beautiful solid colour. At the right side of table will
have “Content of Words”, this section it will contains all the words those
are hidden in that table. So that it will be easy for the user to search for a
particular word. At the bottom we will have “OK” and “Reset” and
“Exit” button. In this project we will take various function and keywords
in order to make it look attractive and proper functioning without getting
any error and as per requirement and maintain the basic requirement as
per the topic and basic requirement given to us.
Python Module :-
For making the word puzzle game we will use various functions, inputs
and python libraries but mainly we will use tkinter.
PythonGUI - Tkinter: - Python offers multiple options for developing
GUI (Graphical User Interface). Out of all the GUI methods, tkinter is
most commonly used method. It is a standard Python interface to the Tk
GUI toolkit shipped with Python. Python with tkinter outputs the fastest
and easiest way to create the GUI applications. Creating a GUI using
tkinter is an easy task.
To create a tkinter:
1. Importing the module – tkinter
2. Create the main window (container)
3. Add any number of widgets to the main window
4. Apply the event Trigger on the widgets.
Button Functions :-
⚫ OK Button- In OK button user have to press after searching all the
words hidden in that table.
⚫ Reset Button: - In RESET button, if user wants to reset the whole
game then he/she can press RESET button which will be on the
bottom of that game in the right side of OK button.
⚫ EXIT Button: - If user wants to take exit from the game then user
can click on EXIT button to get out of the game any time.
⚫ Table: - Table will be of N * N order with many alphabets set in a
random order and with 6-7 meaningful words hidden in it.
PROJECT CODE:-
from tkinter import *
#Tkinter is the Python interface to the Tk GUI toolkit shipped with Python.
from tkinter import messagebox
import nltk
#The Natural Language Toolkit (NLTK) is a platform used for building Python
programs
#that apply statistical natural language processing (NLP) to human language data.
#It can be difficult to install, but is easy when you build this NLTK conda
package.
from nltk.corpus import words
# This function analyze all the words that we get from the tags
#and calculate the similarity of those words with whatwe already got
#in the dictionary and thus this function will use those results to produce an
interest distribution
from time import gmtime, strftime
#Time access and conversions
import time
#import time library for one minute time limit
from collections import Counter
#Collections module implements high-performance container datatypes (beyond the
built-in types list, dict and tuple)
#and contains many useful data structures that you can use to store information in
memory
nltk.download('words')
word_list = words.words()
Matrix_list=['a', 'b', 'c', 'd', 'w', 'x', 'k', 'l', 'e', 'i', 'j', 'm', 'u', 'v',
't', 'h', 'n', 'o', 'g', 'y', 'f', 'r']
score=0;
window=Tk()
#using tkinter(library for GUI) function as Tk()
window.title("Group 12-Find word")
#window title bar name
window.geometry("1000x750+0+0")
#tkinter window size
def checkspells():
global score
#Global variables are the one that are defined and declared outside a function
#and we need to use them inside a function
word=word_check.get();
if word in word_list:
dict = Counter(word)
flag = 1
for key in dict.keys():
if key not in Matrix_list:
flag = 0
if flag == 1 and len(word) > 3:
score=score+len(word)
total="score = "+str(score)
label.configure(text=total)
print(word)
else:
messagebox.showinfo("Check","No matchine with above word OR word length
should be greater than 3")
else:
print("No Word")
word_check.delete(0, 'end')
def tick(time1=''):
time2=time.strftime("%M:%S")
if time2!=time1:
time1=time2;
# timer.config(text="After 1 minute it will be closed automatically
"+time2)
# timer.after(200,tick)
def quit_pro():
messagebox.showinfo("Oops!!","Time Up! Your Score",+str(score))
#when one minute (time limit) is over
window.destroy()
#to close the window in tkinter
btn1 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn1.grid(column=1, row=1)
btn2 = Button(window, text="B",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn2.grid(column=2, row=1)
btn3 = Button(window, text="C",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn3.grid(column=3, row=1)
btn4 = Button(window, text="D",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn4.grid(column=4, row=1)
btn5 = Button(window, text="W",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn5.grid(column=5, row=1)
btn6 = Button(window, text="X",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn6.grid(column=6, row=1)
btn7 = Button(window, text="K",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn7.grid(column=7, row=1)
btn8 = Button(window, text="L",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn8.grid(column=8, row=1)
btn9 = Button(window, text="D",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn9.grid(column=9, row=1)
btn10 = Button(window, text="K",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn10.grid(column=10, row=1)
btn11 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn11.grid(column=11, row=1)
btn12 = Button(window, text="E",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn12.grid(column=12, row=1)
btn1 = Button(window, text="X",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn1.grid(column=1, row=2)
btn2 = Button(window, text="E",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn2.grid(column=2, row=2)
btn3 = Button(window, text="I",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn3.grid(column=3, row=2)
btn4 = Button(window, text="J",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn4.grid(column=4, row=2)
btn5 = Button(window, text="Q",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn5.grid(column=5, row=2)
btn6 = Button(window, text="W",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn6.grid(column=6, row=2)
btn7 = Button(window, text="E",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn7.grid(column=7, row=2)
btn8 = Button(window, text="R",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn8.grid(column=8, row=2)
btn9 = Button(window, text="T",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn9.grid(column=9, row=2)
btn10 = Button(window, text="Y",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn10.grid(column=10, row=2)
btn11 = Button(window, text="Y",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn11.grid(column=11, row=2)
btn12 = Button(window, text="H",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn12.grid(column=12, row=2)
btn1 = Button(window, text="M",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn1.grid(column=1, row=3)
btn2 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn2.grid(column=2, row=3)
btn3 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn3.grid(column=3, row=3)
btn4 = Button(window, text="F",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn4.grid(column=4, row=3)
btn5 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn5.grid(column=5, row=3)
btn6 = Button(window, text="K",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn6.grid(column=6, row=3)
btn7 = Button(window, text="N",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn7.grid(column=7, row=3)
btn8 = Button(window, text="B",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn8.grid(column=8, row=3)
btn9 = Button(window, text="V",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn9.grid(column=9, row=3)
btn10 = Button(window, text="D",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn10.grid(column=10, row=3)
btn11 = Button(window, text="G",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn11.grid(column=11, row=3)
btn12 = Button(window, text="B",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn12.grid(column=12, row=3)
btn1 = Button(window, text="M",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn1.grid(column=1, row=4)
btn2 = Button(window, text="U",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn2.grid(column=2, row=4)
btn3 = Button(window, text="Q",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn3.grid(column=3, row=4)
btn4 = Button(window, text="J",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn4.grid(column=4, row=4)
btn5 = Button(window, text="K",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn5.grid(column=5, row=4)
btn6 = Button(window, text="V",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn6.grid(column=6, row=4)
btn7 = Button(window, text="L",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn7.grid(column=7, row=4)
btn8 = Button(window, text="M",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn8.grid(column=8, row=4)
btn9 = Button(window, text="N",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn9.grid(column=9, row=4)
btn10 = Button(window, text="Q",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn10.grid(column=10, row=4)
btn11 = Button(window, text="O",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn11.grid(column=11, row=4)
btn12 = Button(window, text="L",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn12.grid(column=12, row=4)
btn1 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn1.grid(column=1, row=5)
btn2 = Button(window, text="T",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn2.grid(column=2, row=5)
btn3 = Button(window, text="E",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn3.grid(column=3, row=5)
btn4 = Button(window, text="C",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn4.grid(column=4, row=5)
btn5 = Button(window, text="H",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn5.grid(column=5, row=5)
btn6 = Button(window, text="N",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn6.grid(column=6, row=5)
btn7 = Button(window, text="O",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn7.grid(column=7, row=5)
btn8 = Button(window, text="L",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn8.grid(column=8, row=5)
btn9 = Button(window, text="O",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn9.grid(column=9, row=5)
btn10 = Button(window, text="G",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn10.grid(column=10, row=5)
btn11 = Button(window, text="Y",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn11.grid(column=11, row=5)
btn12 = Button(window, text="F",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn12.grid(column=12, row=5)
btn1 = Button(window, text="D",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn1.grid(column=1, row=6)
btn2 = Button(window, text="I",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn2.grid(column=2, row=6)
btn3 = Button(window, text="M",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn3.grid(column=3, row=6)
btn4 = Button(window, text="Q",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn4.grid(column=4, row=6)
btn5 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn5.grid(column=5, row=6)
btn6 = Button(window, text="X",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn6.grid(column=6, row=6)
btn7 = Button(window, text="V",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn7.grid(column=7, row=6)
btn8 = Button(window, text="J",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn8.grid(column=8, row=6)
btn9 = Button(window, text="N",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn9.grid(column=9, row=6)
btn10 = Button(window, text="L",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn10.grid(column=10, row=6)
btn11 = Button(window, text="M",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn11.grid(column=11, row=6)
btn12 = Button(window, text="P",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn12.grid(column=12, row=6)
btn1 = Button(window, text="K",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn1.grid(column=1, row=7)
btn2 = Button(window, text="F",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn2.grid(column=2, row=7)
btn3 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn3.grid(column=3, row=7)
btn4 = Button(window, text="Y",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn4.grid(column=4, row=7)
btn5 = Button(window, text="L",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn5.grid(column=5, row=7)
btn6 = Button(window, text="L",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn6.grid(column=6, row=7)
btn7 = Button(window, text="Q",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn7.grid(column=7, row=7)
btn8 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn8.grid(column=8, row=7)
btn9 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn9.grid(column=9, row=7)
btn10 = Button(window, text="S",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn10.grid(column=10, row=7)
btn11 = Button(window, text="X",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn11.grid(column=11, row=7)
btn12 = Button(window, text="Z",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn12.grid(column=12, row=7)
btn1 = Button(window, text="I",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn1.grid(column=1, row=8)
btn2 = Button(window, text="U",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn2.grid(column=2, row=8)
btn3 = Button(window, text="G",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn3.grid(column=3, row=8)
btn4 = Button(window, text="H",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn4.grid(column=4, row=8)
btn5 = Button(window, text="J",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn5.grid(column=5, row=8)
btn6 = Button(window, text="K",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn6.grid(column=6, row=8)
btn7 = Button(window, text="Y",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn7.grid(column=7, row=8)
btn8 = Button(window, text="B",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn8.grid(column=8, row=8)
btn9 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn9.grid(column=9, row=8)
btn10 = Button(window, text="V",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn10.grid(column=10, row=8)
btn11 = Button(window, text="Y",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn11.grid(column=11, row=8)
btn12 = Button(window, text="O",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn12.grid(column=12, row=8)
btn1 = Button(window, text="P",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn1.grid(column=1, row=9)
btn2 = Button(window, text="L",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn2.grid(column=2, row=9)
btn3 = Button(window, text="I",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn3.grid(column=3, row=9)
btn4 = Button(window, text="B",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn4.grid(column=4, row=9)
btn5 = Button(window, text="R",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn5.grid(column=5, row=9)
btn6 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn6.grid(column=6, row=9)
btn7 = Button(window, text="R",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn7.grid(column=7, row=9)
btn8 = Button(window, text="Y",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn8.grid(column=8, row=9)
btn9 = Button(window, text="L",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn9.grid(column=9, row=9)
btn10 = Button(window, text="H",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn10.grid(column=10, row=9)
btn11 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn11.grid(column=11, row=9)
btn12 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn12.grid(column=12, row=9)
btn1 = Button(window, text="Q",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn1.grid(column=1, row=10)
btn2 = Button(window, text="J",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn2.grid(column=2, row=10)
btn3 = Button(window, text="K",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn3.grid(column=3, row=10)
btn4 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn4.grid(column=4, row=10)
btn5 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn5.grid(column=5, row=10)
btn6 = Button(window, text="F",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn6.grid(column=6, row=10)
btn7 = Button(window, text="J",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn7.grid(column=7, row=10)
btn8 = Button(window, text="N",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn8.grid(column=8, row=10)
btn9 = Button(window, text="V",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn9.grid(column=9, row=10)
btn10 = Button(window, text="Q",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn10.grid(column=10, row=10)
btn11 = Button(window, text="Y",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn11.grid(column=11, row=10)
btn12 = Button(window, text="C",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn12.grid(column=12, row=10)
btn1 = Button(window, text="C",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn1.grid(column=1, row=11)
btn2 = Button(window, text="V",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn2.grid(column=2, row=11)
btn3 = Button(window, text="N",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn3.grid(column=3, row=11)
btn4 = Button(window, text="K",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn4.grid(column=4, row=11)
btn5 = Button(window, text="L",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn5.grid(column=5, row=11)
btn6 = Button(window, text="I",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn6.grid(column=6, row=11)
btn7 = Button(window, text="Y",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn7.grid(column=7, row=11)
btn8 = Button(window, text="Q",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn8.grid(column=8, row=11)
btn9 = Button(window, text="Y",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn9.grid(column=9, row=11)
btn10 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn10.grid(column=10, row=11)
btn11 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn11.grid(column=11, row=11)
btn12 = Button(window, text="S",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn12.grid(column=12, row=11)
btn1 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn1.grid(column=1, row=12)
btn2 = Button(window, text="C",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn2.grid(column=2, row=12)
btn3 = Button(window, text="V",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn3.grid(column=3, row=12)
btn4 = Button(window, text="S",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn4.grid(column=4, row=12)
btn5 = Button(window, text="S",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn5.grid(column=5, row=12)
btn6 = Button(window, text="F",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn6.grid(column=6, row=12)
btn7 = Button(window, text="U",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn7.grid(column=7, row=12)
btn8 = Button(window, text="N",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn8.grid(column=8, row=12)
btn9 = Button(window, text="A",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn9.grid(column=9, row=12)
btn10 = Button(window, text="C",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn10.grid(column=10, row=12)
btn11 = Button(window, text="V",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn11.grid(column=11, row=12)
btn12 = Button(window, text="L",bg="White",
fg="Black",width=3,height=1,font=('Helvetica','20'))
btn12.grid(column=12, row=12)
word_check=Entry(window,width=30, bd=0)
#widget entry to give input
word_check.configure(highlightbackground="red", highlightcolor="red")
word_check.place(x=750,y=200)
word_check.focus()
btncheck = Button(window, text="OK",bg="navyblue",
fg="white",width=5,font=('Helvetica','10'),command=checkspells)
btncheck.place(x = 820, y = 250)
label=Label(window,text="Score = 0")
label.place(x=810, y=160)
tick()
window.after(60000, quit_pro)
window.mainloop()
RESULT:

More Related Content

Similar to FINALPYTHONPROJECT085733.pdf

ma project
ma projectma project
ma projectAisu
 
Introduction to Python Programming
Introduction to Python ProgrammingIntroduction to Python Programming
Introduction to Python ProgrammingVijaySharma802
 
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...DRVaibhavmeshram1
 
Introduction to Python Programming | InsideAIML
Introduction to Python Programming | InsideAIMLIntroduction to Python Programming | InsideAIML
Introduction to Python Programming | InsideAIMLVijaySharma802
 
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdfpython-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdfKosmikTech1
 
Tkinter_GUI_Programming_in_Python.pdf
Tkinter_GUI_Programming_in_Python.pdfTkinter_GUI_Programming_in_Python.pdf
Tkinter_GUI_Programming_in_Python.pdfArielManzano3
 
Presentation on python
Presentation on pythonPresentation on python
Presentation on pythonwilliam john
 
Notes1
Notes1Notes1
Notes1hccit
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to pythonmckennadglyn
 
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON Nandakumar P
 
Python introduction towards data science
Python introduction towards data sciencePython introduction towards data science
Python introduction towards data sciencedeepak teja
 
Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game Pritam Samanta
 
Python for scientific computing
Python for scientific computingPython for scientific computing
Python for scientific computingGo Asgard
 

Similar to FINALPYTHONPROJECT085733.pdf (20)

ma project
ma projectma project
ma project
 
Python ppt
Python pptPython ppt
Python ppt
 
Introduction to Python Programming
Introduction to Python ProgrammingIntroduction to Python Programming
Introduction to Python Programming
 
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
 
Tic toc game presentation
Tic toc game presentationTic toc game presentation
Tic toc game presentation
 
Introduction to Python Programming | InsideAIML
Introduction to Python Programming | InsideAIMLIntroduction to Python Programming | InsideAIML
Introduction to Python Programming | InsideAIML
 
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdfpython-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
 
Tkinter_GUI_Programming_in_Python.pdf
Tkinter_GUI_Programming_in_Python.pdfTkinter_GUI_Programming_in_Python.pdf
Tkinter_GUI_Programming_in_Python.pdf
 
gdscpython.pdf
gdscpython.pdfgdscpython.pdf
gdscpython.pdf
 
Sam python pro_points_slide
Sam python pro_points_slideSam python pro_points_slide
Sam python pro_points_slide
 
Presentation on python
Presentation on pythonPresentation on python
Presentation on python
 
Notes1
Notes1Notes1
Notes1
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
C
CC
C
 
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
 
Cc code cards
Cc code cardsCc code cards
Cc code cards
 
Python introduction towards data science
Python introduction towards data sciencePython introduction towards data science
Python introduction towards data science
 
Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game
 
ChatGPT in Education
ChatGPT in EducationChatGPT in Education
ChatGPT in Education
 
Python for scientific computing
Python for scientific computingPython for scientific computing
Python for scientific computing
 

Recently uploaded

First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsGlobus
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Globus
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandIES VE
 
AI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning FrameworkAI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning FrameworkAlluxio, Inc.
 
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...Abortion Clinic
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfGlobus
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfkalichargn70th171
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobus
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Globus
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...Juraj Vysvader
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfOrtus Solutions, Corp
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTier1 app
 
Agnieszka Andrzejewska - BIM School Course in Kraków
Agnieszka Andrzejewska - BIM School Course in KrakówAgnieszka Andrzejewska - BIM School Course in Kraków
Agnieszka Andrzejewska - BIM School Course in Krakówbim.edu.pl
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...informapgpstrackings
 
GraphAware - Transforming policing with graph-based intelligence analysis
GraphAware - Transforming policing with graph-based intelligence analysisGraphAware - Transforming policing with graph-based intelligence analysis
GraphAware - Transforming policing with graph-based intelligence analysisNeo4j
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar
 
Breaking the Code : A Guide to WhatsApp Business API.pdf
Breaking the Code : A Guide to WhatsApp Business API.pdfBreaking the Code : A Guide to WhatsApp Business API.pdf
Breaking the Code : A Guide to WhatsApp Business API.pdfMeon Technology
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns
 

Recently uploaded (20)

First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
 
AI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning FrameworkAI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning Framework
 
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
Agnieszka Andrzejewska - BIM School Course in Kraków
Agnieszka Andrzejewska - BIM School Course in KrakówAgnieszka Andrzejewska - BIM School Course in Kraków
Agnieszka Andrzejewska - BIM School Course in Kraków
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
GraphAware - Transforming policing with graph-based intelligence analysis
GraphAware - Transforming policing with graph-based intelligence analysisGraphAware - Transforming policing with graph-based intelligence analysis
GraphAware - Transforming policing with graph-based intelligence analysis
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
Breaking the Code : A Guide to WhatsApp Business API.pdf
Breaking the Code : A Guide to WhatsApp Business API.pdfBreaking the Code : A Guide to WhatsApp Business API.pdf
Breaking the Code : A Guide to WhatsApp Business API.pdf
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 

FINALPYTHONPROJECT085733.pdf

  • 1. Final-Submission Report For Python Programming (INT213) {“PUZZLE GAME.”} Team Members 1. Name: Rohit Yadav Reg No.: 12111323 Roll No.: B57 2.Name: Keshav Kumar Reg No.: 121003252 Roll No.: A08 3.Name: Sachin Rana Reg No.: 12108638 Roll No.: A33 Program: B.Tech (CSE) Semester: Third School School Of Computer Science and Engineering Submitted to: Nidhi Arora Date: 09 November 2022 LOVELY PROFESSINOAL UNIVERSITY
  • 2. Introduction:- Designing a Puzzle Game in which, various letters will be shown in a table and he/she can move horizontally, vertically or diagonally in order to make meaningful words. In this project we are going to develop a puzzle game which is GUI based using python programming language. Word games (also called word game puzzles) are spoken or board games often designed to test ability with language or to explore its properties. Word games are generally used as a source of entertainment, but can additionally serve an educational purpose. Young children can enjoy playing games such as Hangman, while naturally developing important language skills like spelling. While Hangman is a seriously dark game, what we like to focus on is the development of the children. Researchers have found that adults who regularly solved crossword puzzles, which require familiarity with a larger vocabulary, had better brain function later in life.
  • 3. Project Description This game will consist of table with many alphabets set in a random order and many English meaningful words will be hidden between them. User have to find them one by one as soon as possible. At the top game, name will be written there followed by, computer will ask the user to enter his/her name in the next step. Then we will have table of alphabets and background will be of beautiful solid colour. At the right side of table will have “Content of Words”, this section it will contains all the words those are hidden in that table. So that it will be easy for the user to search for a particular word. At the bottom we will have “OK” and “Reset” and “Exit” button. In this project we will take various function and keywords in order to make it look attractive and proper functioning without getting any error and as per requirement and maintain the basic requirement as per the topic and basic requirement given to us. Python Module :- For making the word puzzle game we will use various functions, inputs and python libraries but mainly we will use tkinter. PythonGUI - Tkinter: - Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, tkinter is most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with tkinter outputs the fastest and easiest way to create the GUI applications. Creating a GUI using tkinter is an easy task. To create a tkinter: 1. Importing the module – tkinter 2. Create the main window (container) 3. Add any number of widgets to the main window 4. Apply the event Trigger on the widgets. Button Functions :- ⚫ OK Button- In OK button user have to press after searching all the words hidden in that table. ⚫ Reset Button: - In RESET button, if user wants to reset the whole game then he/she can press RESET button which will be on the bottom of that game in the right side of OK button. ⚫ EXIT Button: - If user wants to take exit from the game then user can click on EXIT button to get out of the game any time. ⚫ Table: - Table will be of N * N order with many alphabets set in a random order and with 6-7 meaningful words hidden in it.
  • 4. PROJECT CODE:- from tkinter import * #Tkinter is the Python interface to the Tk GUI toolkit shipped with Python. from tkinter import messagebox import nltk #The Natural Language Toolkit (NLTK) is a platform used for building Python programs #that apply statistical natural language processing (NLP) to human language data. #It can be difficult to install, but is easy when you build this NLTK conda package. from nltk.corpus import words # This function analyze all the words that we get from the tags #and calculate the similarity of those words with whatwe already got #in the dictionary and thus this function will use those results to produce an interest distribution from time import gmtime, strftime #Time access and conversions import time #import time library for one minute time limit from collections import Counter #Collections module implements high-performance container datatypes (beyond the built-in types list, dict and tuple) #and contains many useful data structures that you can use to store information in memory nltk.download('words') word_list = words.words() Matrix_list=['a', 'b', 'c', 'd', 'w', 'x', 'k', 'l', 'e', 'i', 'j', 'm', 'u', 'v', 't', 'h', 'n', 'o', 'g', 'y', 'f', 'r'] score=0; window=Tk() #using tkinter(library for GUI) function as Tk() window.title("Group 12-Find word") #window title bar name window.geometry("1000x750+0+0") #tkinter window size def checkspells(): global score #Global variables are the one that are defined and declared outside a function #and we need to use them inside a function word=word_check.get(); if word in word_list: dict = Counter(word) flag = 1 for key in dict.keys(): if key not in Matrix_list: flag = 0 if flag == 1 and len(word) > 3: score=score+len(word) total="score = "+str(score) label.configure(text=total) print(word) else:
  • 5. messagebox.showinfo("Check","No matchine with above word OR word length should be greater than 3") else: print("No Word") word_check.delete(0, 'end') def tick(time1=''): time2=time.strftime("%M:%S") if time2!=time1: time1=time2; # timer.config(text="After 1 minute it will be closed automatically "+time2) # timer.after(200,tick) def quit_pro(): messagebox.showinfo("Oops!!","Time Up! Your Score",+str(score)) #when one minute (time limit) is over window.destroy() #to close the window in tkinter btn1 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn1.grid(column=1, row=1) btn2 = Button(window, text="B",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn2.grid(column=2, row=1) btn3 = Button(window, text="C",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn3.grid(column=3, row=1) btn4 = Button(window, text="D",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn4.grid(column=4, row=1) btn5 = Button(window, text="W",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn5.grid(column=5, row=1) btn6 = Button(window, text="X",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn6.grid(column=6, row=1) btn7 = Button(window, text="K",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn7.grid(column=7, row=1) btn8 = Button(window, text="L",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn8.grid(column=8, row=1) btn9 = Button(window, text="D",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn9.grid(column=9, row=1) btn10 = Button(window, text="K",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn10.grid(column=10, row=1) btn11 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn11.grid(column=11, row=1) btn12 = Button(window, text="E",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20'))
  • 6. btn12.grid(column=12, row=1) btn1 = Button(window, text="X",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn1.grid(column=1, row=2) btn2 = Button(window, text="E",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn2.grid(column=2, row=2) btn3 = Button(window, text="I",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn3.grid(column=3, row=2) btn4 = Button(window, text="J",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn4.grid(column=4, row=2) btn5 = Button(window, text="Q",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn5.grid(column=5, row=2) btn6 = Button(window, text="W",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn6.grid(column=6, row=2) btn7 = Button(window, text="E",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn7.grid(column=7, row=2) btn8 = Button(window, text="R",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn8.grid(column=8, row=2) btn9 = Button(window, text="T",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn9.grid(column=9, row=2) btn10 = Button(window, text="Y",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn10.grid(column=10, row=2) btn11 = Button(window, text="Y",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn11.grid(column=11, row=2) btn12 = Button(window, text="H",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn12.grid(column=12, row=2) btn1 = Button(window, text="M",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn1.grid(column=1, row=3) btn2 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn2.grid(column=2, row=3) btn3 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn3.grid(column=3, row=3) btn4 = Button(window, text="F",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn4.grid(column=4, row=3) btn5 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20'))
  • 7. btn5.grid(column=5, row=3) btn6 = Button(window, text="K",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn6.grid(column=6, row=3) btn7 = Button(window, text="N",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn7.grid(column=7, row=3) btn8 = Button(window, text="B",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn8.grid(column=8, row=3) btn9 = Button(window, text="V",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn9.grid(column=9, row=3) btn10 = Button(window, text="D",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn10.grid(column=10, row=3) btn11 = Button(window, text="G",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn11.grid(column=11, row=3) btn12 = Button(window, text="B",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn12.grid(column=12, row=3) btn1 = Button(window, text="M",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn1.grid(column=1, row=4) btn2 = Button(window, text="U",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn2.grid(column=2, row=4) btn3 = Button(window, text="Q",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn3.grid(column=3, row=4) btn4 = Button(window, text="J",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn4.grid(column=4, row=4) btn5 = Button(window, text="K",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn5.grid(column=5, row=4) btn6 = Button(window, text="V",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn6.grid(column=6, row=4) btn7 = Button(window, text="L",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn7.grid(column=7, row=4) btn8 = Button(window, text="M",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn8.grid(column=8, row=4) btn9 = Button(window, text="N",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn9.grid(column=9, row=4) btn10 = Button(window, text="Q",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn10.grid(column=10, row=4)
  • 8. btn11 = Button(window, text="O",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn11.grid(column=11, row=4) btn12 = Button(window, text="L",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn12.grid(column=12, row=4) btn1 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn1.grid(column=1, row=5) btn2 = Button(window, text="T",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn2.grid(column=2, row=5) btn3 = Button(window, text="E",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn3.grid(column=3, row=5) btn4 = Button(window, text="C",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn4.grid(column=4, row=5) btn5 = Button(window, text="H",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn5.grid(column=5, row=5) btn6 = Button(window, text="N",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn6.grid(column=6, row=5) btn7 = Button(window, text="O",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn7.grid(column=7, row=5) btn8 = Button(window, text="L",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn8.grid(column=8, row=5) btn9 = Button(window, text="O",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn9.grid(column=9, row=5) btn10 = Button(window, text="G",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn10.grid(column=10, row=5) btn11 = Button(window, text="Y",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn11.grid(column=11, row=5) btn12 = Button(window, text="F",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn12.grid(column=12, row=5) btn1 = Button(window, text="D",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn1.grid(column=1, row=6) btn2 = Button(window, text="I",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn2.grid(column=2, row=6) btn3 = Button(window, text="M",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn3.grid(column=3, row=6)
  • 9. btn4 = Button(window, text="Q",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn4.grid(column=4, row=6) btn5 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn5.grid(column=5, row=6) btn6 = Button(window, text="X",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn6.grid(column=6, row=6) btn7 = Button(window, text="V",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn7.grid(column=7, row=6) btn8 = Button(window, text="J",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn8.grid(column=8, row=6) btn9 = Button(window, text="N",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn9.grid(column=9, row=6) btn10 = Button(window, text="L",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn10.grid(column=10, row=6) btn11 = Button(window, text="M",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn11.grid(column=11, row=6) btn12 = Button(window, text="P",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn12.grid(column=12, row=6) btn1 = Button(window, text="K",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn1.grid(column=1, row=7) btn2 = Button(window, text="F",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn2.grid(column=2, row=7) btn3 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn3.grid(column=3, row=7) btn4 = Button(window, text="Y",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn4.grid(column=4, row=7) btn5 = Button(window, text="L",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn5.grid(column=5, row=7) btn6 = Button(window, text="L",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn6.grid(column=6, row=7) btn7 = Button(window, text="Q",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn7.grid(column=7, row=7) btn8 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn8.grid(column=8, row=7)
  • 10. btn9 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn9.grid(column=9, row=7) btn10 = Button(window, text="S",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn10.grid(column=10, row=7) btn11 = Button(window, text="X",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn11.grid(column=11, row=7) btn12 = Button(window, text="Z",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn12.grid(column=12, row=7) btn1 = Button(window, text="I",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn1.grid(column=1, row=8) btn2 = Button(window, text="U",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn2.grid(column=2, row=8) btn3 = Button(window, text="G",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn3.grid(column=3, row=8) btn4 = Button(window, text="H",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn4.grid(column=4, row=8) btn5 = Button(window, text="J",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn5.grid(column=5, row=8) btn6 = Button(window, text="K",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn6.grid(column=6, row=8) btn7 = Button(window, text="Y",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn7.grid(column=7, row=8) btn8 = Button(window, text="B",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn8.grid(column=8, row=8) btn9 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn9.grid(column=9, row=8) btn10 = Button(window, text="V",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn10.grid(column=10, row=8) btn11 = Button(window, text="Y",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn11.grid(column=11, row=8) btn12 = Button(window, text="O",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn12.grid(column=12, row=8) btn1 = Button(window, text="P",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn1.grid(column=1, row=9)
  • 11. btn2 = Button(window, text="L",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn2.grid(column=2, row=9) btn3 = Button(window, text="I",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn3.grid(column=3, row=9) btn4 = Button(window, text="B",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn4.grid(column=4, row=9) btn5 = Button(window, text="R",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn5.grid(column=5, row=9) btn6 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn6.grid(column=6, row=9) btn7 = Button(window, text="R",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn7.grid(column=7, row=9) btn8 = Button(window, text="Y",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn8.grid(column=8, row=9) btn9 = Button(window, text="L",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn9.grid(column=9, row=9) btn10 = Button(window, text="H",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn10.grid(column=10, row=9) btn11 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn11.grid(column=11, row=9) btn12 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn12.grid(column=12, row=9) btn1 = Button(window, text="Q",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn1.grid(column=1, row=10) btn2 = Button(window, text="J",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn2.grid(column=2, row=10) btn3 = Button(window, text="K",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn3.grid(column=3, row=10) btn4 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn4.grid(column=4, row=10) btn5 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn5.grid(column=5, row=10) btn6 = Button(window, text="F",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn6.grid(column=6, row=10)
  • 12. btn7 = Button(window, text="J",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn7.grid(column=7, row=10) btn8 = Button(window, text="N",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn8.grid(column=8, row=10) btn9 = Button(window, text="V",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn9.grid(column=9, row=10) btn10 = Button(window, text="Q",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn10.grid(column=10, row=10) btn11 = Button(window, text="Y",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn11.grid(column=11, row=10) btn12 = Button(window, text="C",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn12.grid(column=12, row=10) btn1 = Button(window, text="C",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn1.grid(column=1, row=11) btn2 = Button(window, text="V",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn2.grid(column=2, row=11) btn3 = Button(window, text="N",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn3.grid(column=3, row=11) btn4 = Button(window, text="K",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn4.grid(column=4, row=11) btn5 = Button(window, text="L",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn5.grid(column=5, row=11) btn6 = Button(window, text="I",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn6.grid(column=6, row=11) btn7 = Button(window, text="Y",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn7.grid(column=7, row=11) btn8 = Button(window, text="Q",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn8.grid(column=8, row=11) btn9 = Button(window, text="Y",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn9.grid(column=9, row=11) btn10 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn10.grid(column=10, row=11) btn11 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn11.grid(column=11, row=11)
  • 13. btn12 = Button(window, text="S",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn12.grid(column=12, row=11) btn1 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn1.grid(column=1, row=12) btn2 = Button(window, text="C",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn2.grid(column=2, row=12) btn3 = Button(window, text="V",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn3.grid(column=3, row=12) btn4 = Button(window, text="S",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn4.grid(column=4, row=12) btn5 = Button(window, text="S",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn5.grid(column=5, row=12) btn6 = Button(window, text="F",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn6.grid(column=6, row=12) btn7 = Button(window, text="U",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn7.grid(column=7, row=12) btn8 = Button(window, text="N",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn8.grid(column=8, row=12) btn9 = Button(window, text="A",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn9.grid(column=9, row=12) btn10 = Button(window, text="C",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn10.grid(column=10, row=12) btn11 = Button(window, text="V",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn11.grid(column=11, row=12) btn12 = Button(window, text="L",bg="White", fg="Black",width=3,height=1,font=('Helvetica','20')) btn12.grid(column=12, row=12) word_check=Entry(window,width=30, bd=0) #widget entry to give input word_check.configure(highlightbackground="red", highlightcolor="red") word_check.place(x=750,y=200) word_check.focus() btncheck = Button(window, text="OK",bg="navyblue", fg="white",width=5,font=('Helvetica','10'),command=checkspells) btncheck.place(x = 820, y = 250) label=Label(window,text="Score = 0") label.place(x=810, y=160) tick() window.after(60000, quit_pro)