An Interest In:
Web News this Week
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
April 6, 2022 08:35 am GMT
Original Link: https://dev.to/sharmavikashkr/dg-word-games-op8
DG Word Games
DEVxDeepgram Hackathon | DG Word Games
Overview of My Submission
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:
- a random Crosswords puzzle from this repo
- a wordle word from this list.
- a random dusoku puzzle from this api
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
Original Link: https://dev.to/sharmavikashkr/dg-word-games-op8
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To