Professional Documents
Culture Documents
Final Cs Project
Final Cs Project
Session - 2023-2024
December, 2023
Place:St Matthew's Mission School Udaipur
Certificate
Shreya Agrawal
St Matthew's Mission School
Acknowledgement
1. Undertaking
2. Certificate
3. Acknowledgment
4. Content
5. Introduction of project
6. Objective of the project
7. System requirements of project
8. Source code
9. Outputs
10. References
Introduction
About Jumble WordGam :
Jumble word game is a new way to introduce new vocabulary. It is a word
game with a clue and a set of words each of which is Jumbled" by
scrambling. It is a game in which a jumbled word is given to the player and
player has to rearrange the characters of the word to make a correct
meaningful word to score maximum points.
If the player is not able to guess the correct word in frst attempt then the hints
will be given to them.
The computer picks a random word from a group and then creates a jumbled
version of it, where the letters are in random order. The player has to guess the
original word to win the game.
Examle:
1. Jumble word: erwta
Correct word: water
2. Jumble word: mehtatasmci
Correct word: mathematics
3. Jumble word: keseg
Correct word: geeks
This is a one player game, at first program pick a random word from the given
database of words using choice() method of random module. After shuffling
the characters of picked word using sample method of random module and
shows the jumbled word on the screen. Current player should give the answer;
if it gives the corect answer after rearranging the characters then player's
score is incremented by one otherwise not. After quitting the game, winner is
decided on the basis of scores.
Advantages of "Jumble word game" :
> If the user enter the right answer, then the user will be rewarded by 100
points.
> If the user does not give the right answer, then the user will get the hint of
the first letter of the original word.
And if the user enter the right answer, then the user will be rewarded by
50 points.
> If the user does not give the right answer even after getting the hint of the
first letter of the original word, then the user will get the hint of the last
letter of the original word.
> And if the user enter the right answer, then the user will be rewarded by
25 points.
> If the user does not give the right answer even after getting the hint of the
last letter of the original word, he/she will lose the game.
> Hence, the ganme will be over.
> At last, the user will get the total points.
Ohjective ofthe project
The objective of this project is to let the students apply the programming
knowledge into a real-world situation/problem and exposed the students how
programming skills help in developing a good software.
Software required :
Source
Code
if guess.lower() == target.word:
print ("Congratulations ! You got 1t ight ")
else:
print (f"Sorry, the cOIrect word was: (target wOrd) ")
name == main":
play game ()
Output
Screens
Welcome to the Jumble Word Game!
Round 1
Round 2
Unscramble the word: ythpon
Your guess: python
Sorry, the coIIect word was: python
Round 3