DEV Community

Cover image for DG Word Games
Vikash Kumar
Vikash Kumar

Posted on • Updated on

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 three most popular word/number games in the world:

  • Crosswords
  • Wordle
  • Sudoku

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 as prop. It requests for Deepgram realtime transcription 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's.
  • It then set's the user guess against the relevant clue.
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 sudoku 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

Play Here: https://dgwordgames.z19.web.core.windows.net/

Top comments (0)