Skip to content

About

card deck shuffling game with achievements and leaderboard

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

45 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unique shuffle

Netlify Status

a standard deck of 52 playing cards can be arranged in 52! (52 factorial) different ways:

52!

= 52 x 51 x 50 x ... x 3 x 2 x 1

= 8.0658 × 10^67

if every person on Earth generated a trillion shuffles per second since the beginning of the universe, we would have explored only a tiny fraction of all possible arrangements

'unique shuffle' is an online card shuffling game with local achievements, pattern detection, saved shuffles, and public share links

https://unique-shuffle.netlify.app

screens

features

  • randomly shuffle a virtual deck
  • pattern detection and highlighting
  • achievements
  • local shuffle saving
  • public shuffle sharing
  • global shuffle count
  • profile export/import

feature requests

welcome! just create an issue

for devs

prerequisites

  • Node.js 20.9+ and npm
  • Neon Postgres project
  • PostHog account for analytics (optional)

frontend

  • next.js 16 with app router and react 18
  • react context + hooks, server routes
  • tailwind CSS, shadcn/ui
  • posthog for event tracking and analysis

backend

  • next.js API Routes, server components
  • postgresql via Neon
  • Drizzle ORM and migrations
  • netlify for deployment and functions

contributing

welcome!

project structure

unique-shuffle/
├── public/               # Static assets and images
├── src/
│   ├── app/              # Next.js App Router pages and layouts
│   │   ├── api/          # API routes and serverless functions
│   │   ├── auth/         # Redirects legacy auth routes to local profile
│   │   ├── shared/       # Public shared shuffle pages
│   │   └── profile/      # Profile and saved activity
│   ├── components/       # Reusable UI components
│   │   ├── ui/           # Base UI components (shadcn)
│   │   └── layout/       # Layout and provider components
│   ├── lib/              # Local profile, database, analytics, and utilities
│   └── types/            # TypeScript type definitions
├── drizzle/              # Drizzle-generated SQL migrations
├── .env.example          # Example environment variables
├── package.json          # Project dependencies and scripts
└── README.md             # Project documentation

About

card deck shuffling game with achievements and leaderboard

Resources

Stars

0 stars

Watchers

1 watching

Forks

Sponsor this project

Used by

Contributors

Languages