DEV Community

Cover image for DG Word Games
Vikash Kumar
Vikash Kumar

Posted on • Edited on

5 4

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/

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay