Word Puzzle PDF
Word Puzzle PDF
Submitted by
NAME: REG.NO: ROLL.NO:
ANIL KUMAR PALLIKONDA 12112197 RK21HPA01
NAVEEN ARUN JASWANTH GOUD 12113219 RK21HPA08
VINAY SAI NAIDU PUDU 12112561 RK21HPA10
Work allocation:
1. Anil kumar pallikonda Interface of the game
2. Objective
4. Project Limitation
If you want to access this game, then you must have python
installed in your desktop. The limitation of this project that you
do not access it in your mobile device or in android devices.
5.Solving methods
language data
nltk.download('words')
word_list = words.words()
Matrix_list = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u',
'v', 'w', 'x', 'y', 'z']
score = 0;
window = Tk()
window.geometry("1000x750+0+0")
window.title("Group 23-Find word")
f1 = Frame(window, borderwidth=2)
f1.grid(row=0, column=0)
f2 = Frame(window, borderwidth=2)
f2.grid(row=1, column=0)
f3 = Frame(window, borderwidth=2)
f3.grid(row=0, column=1)
hscore = Label(f3, text="highest Score = 96", font=('Helvetica', '10'))
hscore.grid(row=2, column=6)
f4 = Frame(window, borderwidth=2)
f4.grid(row=1, column=1)
f5 = Frame(window, borderwidth=2)
f5.grid(row=1, column=4)
reset2 = Button(f5, text="Reset game", bg="white", fg="black",
font=('Helvetica', '10'), command=lambda: click1(reset2))
reset2.grid(row=2, column=0)
exitgame = Button(f5, text="Exit game", bg="red", fg="black",
font=('Helvetica', '10'), command=lambda: exit_game())
exitgame.grid(row=6, column=0)
def checkspells():
global score
global total
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 click1(reset2):
global total
global found
global strg
global count
global l
global score
global w_found
global l_found
global word
score == 0
total = "score = " + str(0)
label.configure(text=total)
print(word)
btn1 = Button(f2, text="A", bg="cyan", fg="Black", width=3, height=1,
font=('Helvetica', '20'),
command=lambda: click(btn1))
btn1.grid(column=1, row=1)
btn2 = Button(f2, text="B", bg="cyan", fg="Black", width=3, height=1,
font=('Helvetica', '20'),
command=lambda: click(btn2))
btn2.grid(column=2, row=1)
btn3 = Button(f2, text="C", bg="cyan", fg="Black", width=3, height=1,
font=('Helvetica', '20'),
command=lambda: click(btn3))
btn3.grid(column=3, row=1)
btn4 = Button(f2, text="D", bg="cyan", fg="Black", width=3, height=1,
font=('Helvetica', '20'),
command=lambda: click(btn4))
btn4.grid(column=4, row=1)
btn5 = Button(f2, text="W", bg="cyan", fg="Black", width=3, height=1,
font=('Helvetica', '20'),
command=lambda: click(btn5))
btn5.grid(column=5, row=1)
btn6 = Button(f2, text="X", bg="cyan", fg="Black", width=3, height=1,
font=('Helvetica', '20'),
command=lambda: click(btn6))
btn6.grid(column=6, row=1)
btn7 = Button(f2, text="K", bg="cyan", fg="Black", width=3, height=1,
font=('Helvetica', '20'),
command=lambda: click(btn7))
btn7.grid(column=7, row=1)
btn8 = Button(f2, text="L", bg="cyan", fg="Black", width=3, height=1,
font=('Helvetica', '20'),
command=lambda: click(btn8))
btn8.grid(column=8, row=1)
btn9 = Button(f2, text="E", bg="cyan", fg="Black", width=3, height=1,
font=('Helvetica', '20'),
command=lambda: click(btn9))
btn9.grid(column=9, row=1)
btn10 = Button(f2, text="A", bg="cyan", fg="Black", width=3, height=1,
font=('Helvetica', '20'),
command=lambda: click(btn10))
btn10.grid(column=10, row=1)
btn11 = Button(f2, text="V", bg="cyan", fg="Black", width=3, height=1,
font=('Helvetica', '20'),
command=lambda: click(btn11))
btn11.grid(column=11, row=1)
btn12 = Button(f2, text="E", bg="cyan", fg="Black", width=3, height=1,
font=('Helvetica', '20'),
command=lambda: click(btn12))
btn12.grid(column=12, row=1)
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!")
window.destroy()
def exit_game():
window.destroy()
DESIGN:
Results:
Result-1:
The first two words are present in the puzzle so they gets the score
but abstract couldn’t get the score and “No word” is displayed in the
run screen
Result-5:
After clicking Reset game the score return to 0.when you need to
restart the game this button is useful
After clicking reset game:
Score gets to 0
Conclusion:
Achievements:
Through generating this word puzzle game, we feel we have
improved my programming ability. This was perhaps the largest
program in the terms of time invested and lines of code written that
we have created. The code is not of high quality, and it is several
lacking in documentation, but some of the problem posed by the
project were a good challenge to solve. Writing the solver has
demonstrated the advantages of algorithm finally, we have
experienced participating in what we could be called small research
project (useful for future work)
Project status:
The logic solver portion of the program is sufficient for solving many
word puzzle. However, the implementation could likely be improved
to execute faster. Furthermore, there are many logics solving
techniques that have not been implemented.
The generator on the other hand is currently rather poorly
implemented. It works in that it successfully generates grids of a
given numbers of hints, but the variability of a time to generate is a
significant weakness.
References:
• https://www.tutorialspoint.com/python/python_g
ui_programming.html
• https://readthedocs.org/projects/pythonguide/downloads/pdf/latest/
• https://www.w3resource.com/python/pythontutorial.ph