Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anagram #3

Open
15 tasks done
JasonLin43212 opened this issue Jan 20, 2021 · 2 comments · Fixed by #7 · May be fixed by #21
Open
15 tasks done

Anagram #3

JasonLin43212 opened this issue Jan 20, 2021 · 2 comments · Fixed by #7 · May be fixed by #21

Comments

@JasonLin43212
Copy link
Contributor

JasonLin43212 commented Jan 20, 2021

One of the applications that we want to make is a game where users are given some letters and they have to create words from those letters. The words that the user makes should (or maybe not ?) be from the piece of text that it is based off of.
The words for the anagrams can be made from just the nouns, adjectives, or any other part of speech.
There can be categories of word difficulty or topics.
We can also add definitions for the words.

  • Wire frame on figma
  • Come up with an idea of what type of data you would want for the anagrams from the backend. (Jason)
    • For now, the backend will send two lists of words: one list of words from the input text and a second list of words that are anagrams that can be formed, but not in the input text. The main list of words will also include examples of how the word is used as well as definitions.
  • Create Django API to fetch necessary data for anagram
  • Create prototype

Additional Things:

  • Rules for anagrams(DURING IAP)
  • Styling
  • Anagram for a single word mode (Maybe ask Ryaan for more clarification on what this means?)
  • Remove confetti from extra words (DURING IAP)
  • Responsiveness (DURING IAP-Jason)
  • Highlight words that are wrong and correct after give up / game is finished(DURING IAP)
  • Show Instruction modal when you start the game(DURING IAP)
  • Relabel what the tooltips have as titles(DURING IAP)
  • When hovering over shuffle button, the shuffle icon disappears. Maybe change the on hover color to something else(DURING IAP)
  • Read word set on module import (DURING IAP-Jason)
  • Make an api endpoint for checking if a word is in the word set (DURING IAP-Jason)
@JasonLin43212
Copy link
Contributor Author

Branch: anagram

@JasonLin43212 JasonLin43212 linked a pull request Jan 26, 2021 that will close this issue
@JasonLin43212 JasonLin43212 reopened this Feb 2, 2021
@ryaanahmed
Copy link
Member

ryaanahmed commented Feb 2, 2021

Anagram generation is a bit slow right now, and I suspect it's because of the "extra words" generation. Possible things to speed it up:

  • Add an API endpoint to check if a user input that's not in the set of answers is in the global word set (that way we don't have to generate the extra words list at all)
  • Run get_word_set at module import instead of during a function call: we're going to want to use this list quite a lot, so rather than having to do a file read / parse every time, probably better to have it in memory the whole time the application is running.

@JasonLin43212 JasonLin43212 linked a pull request Apr 5, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants