Skip to content

Word guessing game based on top of Webster's English Dictionary 100,000+ words.

License

Notifications You must be signed in to change notification settings

TurbulentRice/Scrambled-Word-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scrambled-Word-Game

Word guessing game based on top of Webster's English Dictionary (WED) 100,000+ words.

Rules: Words are randomly selected from WED and scrambled. Player is given a string of letters, has three tries to guess the word correctly. Five levels (words) of increasing difficulty (length), guess all correctly to win. Scoring based on selected game difficulty and tries remaining. High score saved between games played within the same Scrambled object.

Features:

  • "main.py" provides an interface for accessing the basic methods of Dictionary and Scrambled objects.
  • "Dictionary" class deserializes JSON file to Python dict 'vocabulary', moves undesired words to dict 'trash'. Performs actions over WED for return to Scrambled.
  • "Scrambled" class manages game, interacts with Dictionary object attribute
  • Webster's English Dictionary JSON file (~25mb)

All that is needed to play Scrambled is to instantiate a default Scrambled object:

my_game = Scrambled()

equivalent to:

my_game = Scrambled(lang='eng', test=False, start=True)

About

Word guessing game based on top of Webster's English Dictionary 100,000+ words.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages