Skip to content

nishittated/Android-Anagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android-Anagram

Created an Android app for a simple Anagram game.

Anagram

  • An anagram is a word formed by rearranging the letters of another word.
  • For example, cinema is an anagram of iceman.

Mechanics of the game

  • The game provides the user with a word from the dictionary.
  • The user tries to create as many words as possible that contain all the letters of the given word plus one additional letter.
  • Note that adding the extra letter at the beginning or the end without reordering the other letters is not valid.
  • For example, if the game picks the word 'ore' as a starter, the user might guess 'rose' or 'zero' but not 'sore'.
  • The user can give up and see the words that they did not guess

In order to ensure that the game is not too difficult, the computer will only propose words that have at least 5 possible valid anagrams.

Anagram pic

Future Enhancements

  • Two-letter mode: switch to allowing the user to add two letters to form anagrams.
  • Optimize word selection by removing words that do not have enough anagrams from the pool of possible starter words. Note that those words should still remain in wordSet since they can still be used as anagrams to other words.
  • Two-word mode: Allow the user to add one letter to a pair of words to form two new valid words.

Find this project useful? ❤️

  • Support it by clicking the ⭐️ button on the upper right of this page. ✌️

Support or Contact - Let's become friend

Contributing to Android-Anagram