Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 6, 2022 08:35 am GMT

DG Word Games

DEVxDeepgram Hackathon | DG Word Games

Overview of My Submission

Banner

What

This project uses Deepgram's realtime STT transcription API to enable playing the two most popular word games in the world:

  • Crosswords
  • Wordle

How

This app is built in react.

It pre-loads in the redux store:

Then, root component transcripts the user's speech in realtime and passes the transcription results to each game components. It requests for key from another API

Crosswords

The crosswords puzzle can be played by speaking out your guesses.
Eg. "twenty five across blend"

  • It identifies the direction (across/down).
  • It uses a words-to-numbers library to convert the number in words to integers.
  • It then checks if the guess word's (in this case, "blend") length is equal to the answer.
  • It then set's the user guess against the relevant question.
Wordle

The wordle puzzle can be played by speaking out just the guess.
Eg. "blend"

  • It will check if the guess word's (in this case, "blend") length is equal to 5.
  • It will add the guess to the guesslist.
Sudoku

The wordle puzzle can be played by speaking out position with the guess.
Eg. "five cross two seven"

  • It uses a words-to-numbers library to convert the number in words to integers.
  • It will find the position of the guess by finding row and column separated by "cross".
  • It will put the guess in it's box position.

Submission Category:

Gram Gamers

Link to Code on GitHub

https://github.com/sharmavikashkr/dg-word-games

Additional Resources / Info

Live Demo: https://dgwordgames.z19.web.core.windows.net/


Original Link: https://dev.to/sharmavikashkr/dg-word-games-op8

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To