The classic game of Pig re-made in the web!
Tip
You can play it live here pig-dice.troypoulter.com!
- Play with up to 6 friends online with realtime multiplayer in the browser
- Challenge PiggleWiggle, a computer that will give you a run for your money
- Responsive on mobile
I haven't worked with websockets before and my friends and I did a hackathon one weekend to learn them, I decided to make this game as it touched all the key things I wanted to learn.
The main new technology I learnt was using websockets via Partykit, which was great to use, especially with their good local DX.
Over the course of a week, I put it all together for its first release! I'm planning to add more over time and address feedback, though in its current state it should serve as an example of using all the technologies below well!
- Next.js
- Partykit for websockets
- TailwindCSS & shadcn/ui
- SQLite hosted via Turso
- DrizzleORM
- Vercel for hosting and deployment
- Plausible for analytics
Contributions are always welcome!
See CONTRIBUTING.md for ways to get started.
Feedback is appreciated! Reach out on Twitter or submit a new issue!
Licensed under the MIT license.