<?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>DEV Community: Zihan Lei</title>
    <description>The latest articles on DEV Community by Zihan Lei (@zihanlei).</description>
    <link>https://dev.to/zihanlei</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4036023%2F06ddf9a6-f976-434e-8800-936b952d8621.png</url>
      <title>DEV Community: Zihan Lei</title>
      <link>https://dev.to/zihanlei</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zihanlei"/>
    <language>en</language>
    <item>
      <title>Some feedback is welcome at this post! Feel free to be brutal or kind.</title>
      <dc:creator>Zihan Lei</dc:creator>
      <pubDate>Sun, 19 Jul 2026 04:15:47 +0000</pubDate>
      <link>https://dev.to/zihanlei/some-feedback-is-welcome-at-this-post-feel-free-to-be-brutal-or-kind-3ep0</link>
      <guid>https://dev.to/zihanlei/some-feedback-is-welcome-at-this-post-feel-free-to-be-brutal-or-kind-3ep0</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/zihanlei/building-a-real-time-multiplayer-poker-game-phase-1-of-3-1gk4" class="crayons-story__hidden-navigation-link"&gt;Building a Real-time, Multiplayer Poker Game: Phase 1 of 3&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/zihanlei" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4036023%2F06ddf9a6-f976-434e-8800-936b952d8621.png" alt="zihanlei profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/zihanlei" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Zihan Lei
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Zihan Lei
                
              
              &lt;div id="story-author-preview-content-4177067" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/zihanlei" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4036023%2F06ddf9a6-f976-434e-8800-936b952d8621.png" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Zihan Lei&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/zihanlei/building-a-real-time-multiplayer-poker-game-phase-1-of-3-1gk4" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Jul 19&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/zihanlei/building-a-real-time-multiplayer-poker-game-phase-1-of-3-1gk4" id="article-link-4177067"&gt;
          Building a Real-time, Multiplayer Poker Game: Phase 1 of 3
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag crayons-tag--filled  " href="/t/discuss"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;discuss&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/webdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;webdev&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/gamedev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;gamedev&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/sideprojects"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;sideprojects&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/zihanlei/building-a-real-time-multiplayer-poker-game-phase-1-of-3-1gk4" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/exploding-head-daceb38d627e6ae9b730f36a1e390fca556a4289d5a41abb2c35068ad3e2c4b5.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;8&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/zihanlei/building-a-real-time-multiplayer-poker-game-phase-1-of-3-1gk4#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              2&lt;span class="hidden s:inline"&gt;&amp;nbsp;comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            2 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial crayons-icon c-btn__icon"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success crayons-icon c-btn__icon"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
      <category>discuss</category>
      <category>gamedev</category>
      <category>showdev</category>
      <category>sideprojects</category>
    </item>
    <item>
      <title>Building a Real-time, Multiplayer Poker Game: Phase 1 of 3</title>
      <dc:creator>Zihan Lei</dc:creator>
      <pubDate>Sun, 19 Jul 2026 04:14:48 +0000</pubDate>
      <link>https://dev.to/zihanlei/building-a-real-time-multiplayer-poker-game-phase-1-of-3-1gk4</link>
      <guid>https://dev.to/zihanlei/building-a-real-time-multiplayer-poker-game-phase-1-of-3-1gk4</guid>
      <description>&lt;h1&gt;
  
  
  Building a Server‑Authoritative Poker Engine: Phase 1 of 3
&lt;/h1&gt;

&lt;p&gt;I'm a high school student developer, and for the past few months I've been building a real‑time multiplayer Texas Hold'em game from scratch. This is &lt;strong&gt;Phase 1&lt;/strong&gt;: a fully functional local prototype that runs on Node.js + Socket.IO.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; This is &lt;strong&gt;not deployable yet&lt;/strong&gt;. It's a local‑only testing prototype. I have two more major phases planned before it's ready for public release on platforms like Itch.io, CrazyGames, and Poki.&lt;/p&gt;




&lt;h2&gt;
  
  
  🛠️ What's Built So Far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Real‑time multiplayer&lt;/strong&gt;: up to 12 players per table&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Full game logic&lt;/strong&gt;: side pots, rebuys, all‑in, showdown&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spectator mode&lt;/strong&gt;: watch games and request to join (host approved)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;20‑second turn timer&lt;/strong&gt;: auto‑fold on timeout with visual countdown&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Floating emojis&lt;/strong&gt;: YouTube‑live style reactions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sound effects&lt;/strong&gt;: synthesised via Web Audio API (no external files yet)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Host controls&lt;/strong&gt;: kick players, edit chips, change password, toggle rebuys, change max players&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Responsive UI&lt;/strong&gt;: works on desktop and mobile&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🧠 Technical Highlights
&lt;/h2&gt;

&lt;p&gt;The entire game state is managed server‑side to prevent cheating. Some of the more interesting parts I had to figure out:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Side‑pot algorithm&lt;/strong&gt;: calculating multiple pots when players go all‑in&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hand evaluator&lt;/strong&gt;: ranking 5‑card hands from 7 cards (with kickers)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Turn timer&lt;/strong&gt;: server‑enforced 20s limit with auto‑fold&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spectator flow&lt;/strong&gt;: separate chat, request‑to‑join with host approval&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔮 What's Coming (Phases 2 &amp;amp; 3)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Phase 2&lt;/strong&gt;: major content and mechanics additions (the fun stuff).
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Phase 3&lt;/strong&gt;: complete aesthetic overhaul and UI polish, making it ready for public platforms.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  💬 Why I'm Sharing Now
&lt;/h2&gt;

&lt;p&gt;I want early feedback on the core logic, UX, and any bugs before I build more on top of it.&lt;/p&gt;

&lt;p&gt;Since I'm a student doing this in my free time, I'll respond to feedback and fix reported issues within &lt;strong&gt;2 weeks&lt;/strong&gt; (best case). If I can't make that window, I'll reply to let you know when I can, and ping you again once the fix is live.&lt;/p&gt;




&lt;h2&gt;
  
  
  🚀 Try It Yourself
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/zihanlei/hokus-pokers
&lt;span class="nb"&gt;cd &lt;/span&gt;hokus-pokers
npm &lt;span class="nb"&gt;install
&lt;/span&gt;npm start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Visit &lt;code&gt;http://localhost:3000&lt;/code&gt; in your browser, host a game, and open a second tab to join as a player.&lt;/p&gt;




&lt;h2&gt;
  
  
  📦 Repo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/zihanlei/hokus-pokers" rel="noopener noreferrer"&gt;https://github.com/zihanlei/hokus-pokers&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Open to all feedback – feel free to &lt;a href="https://github.com/zihanlei/hokus-pokers/issues" rel="noopener noreferrer"&gt;open an issue&lt;/a&gt;, start a &lt;a href="https://github.com/zihanlei/hokus-pokers/discussions" rel="noopener noreferrer"&gt;discussion&lt;/a&gt;, or email me directly at &lt;code&gt;zihanlei0512@gmail.com&lt;/code&gt;. Thanks for reading!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>gamedev</category>
      <category>discuss</category>
      <category>sideprojects</category>
    </item>
  </channel>
</rss>
