<?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: Dhaval Patel</title>
    <description>The latest articles on DEV Community by Dhaval Patel (@dhaval109).</description>
    <link>https://dev.to/dhaval109</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%2F4203588%2Fd65004e4-d712-4e76-9588-e3355e2f411b.png</url>
      <title>DEV Community: Dhaval Patel</title>
      <link>https://dev.to/dhaval109</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dhaval109"/>
    <language>en</language>
    <item>
      <title>Lessons from building 24 pass-and-play browser games for one shared phone</title>
      <dc:creator>Dhaval Patel</dc:creator>
      <pubDate>Sat, 24 Oct 2026 00:52:23 +0000</pubDate>
      <link>https://dev.to/dhaval109/lessons-from-building-24-pass-and-play-browser-games-for-one-shared-phone-3n7d</link>
      <guid>https://dev.to/dhaval109/lessons-from-building-24-pass-and-play-browser-games-for-one-shared-phone-3n7d</guid>
      <description>&lt;p&gt;Most online board games assume every player has their own device and an account. I wanted the opposite: two to twelve people sitting together, passing one phone, tablet or laptop around, with no sign-up and no internet needed after the first visit.&lt;/p&gt;

&lt;p&gt;That idea became &lt;a href="https://passandplaygames.com/?utm_source=dev.to&amp;amp;utm_medium=referral&amp;amp;utm_campaign=devto_article"&gt;Pass and Play Games&lt;/a&gt;, a free collection of browser games: chess, ludo, checkers, backgammon, mancala, dominoes, plus party games like Imposter and Charades. I'm a business analyst by day, so I run it with a developer: I write the briefs and test everything, he builds the games.&lt;/p&gt;

&lt;p&gt;Here's what we learned about designing for a single shared screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The "pass screen" matters more than the board
&lt;/h2&gt;

&lt;p&gt;In chess, both players can see everything, so passing the phone is easy. In Sea Battle or Imposter, the next player must not see what the last player just saw. We added an optional pass screen between turns that only shows whose turn it is. It's optional because in open-information games it just slows things down.&lt;/p&gt;

&lt;p&gt;&lt;a href="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%2Farticles%2Fhwaxv9dikiy6bbk7f257.jpg" class="article-body-image-wrapper"&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%2Farticles%2Fhwaxv9dikiy6bbk7f257.jpg" alt="Imposter party word game for 3 to 12 players on one phone" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Save after every move
&lt;/h2&gt;

&lt;p&gt;Shared devices get interrupted all the time: a phone call, the screen locks, someone closes the tab. Every game saves its state on the device after each move and resumes where you left off. There's no account and no server involved: the browser storage is the save file. Players, scores and settings live there too, with backup/restore and a "delete all my data" option.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Offline is a feature, not a bonus
&lt;/h2&gt;

&lt;p&gt;Pass-and-play happens on trains and flights, while camping, or at a relative's house with bad Wi-Fi. After the first visit, the games, rules and tutorials are stored on the device, and the site can be added to the home screen like an app.&lt;/p&gt;

&lt;p&gt;Tip if you build something similar: test in airplane mode early. It shows problems you never notice on your desk Wi-Fi.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. One device, many different users
&lt;/h2&gt;

&lt;p&gt;When a phone moves around a table, it gets used by kids, parents and grandparents in the same evening. So the settings matter: light/dark theme, larger text and controls, colour-safe player colours, reduced motion, and an optional move confirmation to stop accidental taps.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Let the computer fill empty seats
&lt;/h2&gt;

&lt;p&gt;Four-player Ludo with only two people feels empty. In games like Ludo, Dominoes, Chinese Checkers and Yacht Dice, computer players can fill the empty seats, and most two-player games have a computer opponent with adjustable strength.&lt;/p&gt;

&lt;p&gt;&lt;a href="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%2Farticles%2Fwtq040aepk7r9nissnn7.jpg" class="article-body-image-wrapper"&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%2Farticles%2Fwtq040aepk7r9nissnn7.jpg" alt="Pass-and-play Ludo for 2 to 4 players on one device" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Small things people notice
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Undo&lt;/strong&gt; for misclicks (very common when the device is passed around)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rematch&lt;/strong&gt; where the other player goes first&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Session scores&lt;/strong&gt; so a "best of five" doesn't need pen and paper&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;Right now there are 24 playable games, with Hot Dice, Draw and Guess, Forbidden Words and Hot Potato coming next. Chess was the first game we built. It started as a standalone &lt;a href="https://chess-pass-and-play.netlify.app/?utm_source=dev.to&amp;amp;utm_medium=referral&amp;amp;utm_campaign=devto_article"&gt;pass and play chess site&lt;/a&gt; before it became part of the collection.&lt;/p&gt;

&lt;p&gt;&lt;a href="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%2Farticles%2Foic665whwmuxxlh2twm8.jpg" class="article-body-image-wrapper"&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%2Farticles%2Foic665whwmuxxlh2twm8.jpg" alt="Pass-and-play chess for 2 players on one phone" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want to try one, &lt;a href="https://passandplaygames.com/chess?utm_source=dev.to&amp;amp;utm_medium=referral&amp;amp;utm_campaign=devto_article"&gt;pass-and-play chess&lt;/a&gt; is a good place to start.&lt;/p&gt;

&lt;p&gt;I'd love feedback from other devs, especially on offline handling and the pass-screen UX. What would you want from a game that everyone plays on one device?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I wrote this post with help from an AI assistant. The project, decisions and testing are my own.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
