Skip to content

Repository files navigation

Rock Paper Scissors

Provably fair rock paper scissors game with leaderboard and player authentication.

Originally a technical assignment, now serving as a demo for @openworkers/adapter-sveltekit with per-endpoint workers.

Live demo: rock-paper-scissors.workers.rocks

Features

  • Provably fair: Computer commits to its move before you play (SHA-1 hash verification)
  • Leaderboard: Track wins across all players
  • Secure authentication: Cookie-based player sessions with database verification
  • Per-endpoint workers: Each API route compiled into its own optimized worker

Development

Install dependencies

bun install

Database setup

Execute schema.sql in the OpenWorkers dashboard SQL console to create the required tables.

Run dev server

bun run dev

Building

bun run build

Type checking

bun run check

About

Provably fair rock paper scissors game

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages