<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Vikash Kumar</title>
    <description>The latest articles on Forem by Vikash Kumar (@sharmavikashkr).</description>
    <link>https://forem.com/sharmavikashkr</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F742772%2F802f985c-93e4-4679-b558-4365aa85be61.jpeg</url>
      <title>Forem: Vikash Kumar</title>
      <link>https://forem.com/sharmavikashkr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/sharmavikashkr"/>
    <language>en</language>
    <item>
      <title>DG Word Games</title>
      <dc:creator>Vikash Kumar</dc:creator>
      <pubDate>Wed, 06 Apr 2022 08:35:56 +0000</pubDate>
      <link>https://forem.com/sharmavikashkr/dg-word-games-op8</link>
      <guid>https://forem.com/sharmavikashkr/dg-word-games-op8</guid>
      <description>&lt;p&gt;&lt;strong&gt;&lt;em&gt;DEVxDeepgram Hackathon&lt;/em&gt; | DG Word Games&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;— &lt;/p&gt;

&lt;h3&gt;
  
  
  Overview of My Submission
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vPtcMbOO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/sharmavikashkr/dg-word-games/master/public/banner.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vPtcMbOO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/sharmavikashkr/dg-word-games/master/public/banner.png" alt="Banner" width="880" height="470"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  What
&lt;/h4&gt;

&lt;p&gt;This project uses &lt;a href="https://deepgram.com/"&gt;Deepgram&lt;/a&gt;'s realtime STT transcription API to enable playing the three most popular word/number games in the world:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Crosswords&lt;/li&gt;
&lt;li&gt;Wordle&lt;/li&gt;
&lt;li&gt;Sudoku&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  How
&lt;/h4&gt;

&lt;p&gt;This app is built in react.&lt;/p&gt;

&lt;p&gt;It pre-loads in the redux store:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a random Crosswords puzzle from &lt;a href="https://github.com/doshea/nyt_crosswords/"&gt;this repo&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;a wordle word from &lt;a href="//src/store/constants/wordleWords.js"&gt;this list&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;a random sudoku puzzle from &lt;a href="https://github.com/bertoort/sugoku"&gt;this api&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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 &lt;a href="https://github.com/sharmavikashkr/dgwordgames-api"&gt;API&lt;/a&gt;.&lt;/p&gt;

&lt;h5&gt;
  
  
  Crosswords
&lt;/h5&gt;

&lt;p&gt;The crosswords puzzle can be played by speaking out your guesses.&lt;br&gt;
Eg. &lt;strong&gt;"twenty five across blend"&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It identifies the direction (&lt;strong&gt;across/down&lt;/strong&gt;).&lt;/li&gt;
&lt;li&gt;It uses a &lt;a href="https://www.npmjs.com/package/words-to-numbers"&gt;words-to-numbers&lt;/a&gt; library to convert the number in words to integers.&lt;/li&gt;
&lt;li&gt;It then checks if the guess word's (in this case, "blend") length is equal to the answer's.&lt;/li&gt;
&lt;li&gt;It then set's the user guess against the relevant clue.&lt;/li&gt;
&lt;/ul&gt;
&lt;h5&gt;
  
  
  Wordle
&lt;/h5&gt;

&lt;p&gt;The wordle puzzle can be played by speaking out just the guess.&lt;br&gt;
Eg. &lt;strong&gt;"blend"&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It will check if the guess word's (in this case, "blend") length is equal to 5.&lt;/li&gt;
&lt;li&gt;It will add the guess to the guesslist.&lt;/li&gt;
&lt;/ul&gt;
&lt;h5&gt;
  
  
  Sudoku
&lt;/h5&gt;

&lt;p&gt;The sudoku puzzle can be played by speaking out position with the guess.&lt;br&gt;
Eg. &lt;strong&gt;"five cross two seven"&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It uses a &lt;a href="https://www.npmjs.com/package/words-to-numbers"&gt;words-to-numbers&lt;/a&gt; library to convert the number in words to integers.&lt;/li&gt;
&lt;li&gt;It will find the position of the guess by finding row and column separated by "cross".&lt;/li&gt;
&lt;li&gt;It will put the guess in it's box position.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Submission Category:
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Gram Gamers&lt;/strong&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Link to Code on GitHub
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://github.com/sharmavikashkr/dg-word-games"&gt;https://github.com/sharmavikashkr/dg-word-games&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Additional Resources / Info
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Play Here&lt;/strong&gt;: &lt;a href="https://dgwordgames.z19.web.core.windows.net/"&gt;https://dgwordgames.z19.web.core.windows.net/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/wU-orGRhPKA"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>hackwithdg</category>
      <category>react</category>
      <category>wordgames</category>
      <category>redux</category>
    </item>
  </channel>
</rss>
