/hangman-rollup

A Hangman-style rollup frame built on @stackrlabs SDK

Primary LanguageTypeScript

Hangman, the game

  +---+
  |   |
  O   |
 /|\  |
 / \  |
      |

Description

A Hangman game which runs as a Farcaster-native rollup frame. Rollup powered by Stackr SDK

How to run the game

  • Clone the repo and install the dependencies
cd hangman
npm i
  • Setup env variables for Micro-rollup
# .dev.env for development
# .prod.env for production
touch .dev.env
# and add the following content into it.
PRIVATE_KEY= # private key of the account
# pick these values from https://docs.stf.xyz/build/references/providers-and-rpc for Sepolia
VULCAN_RPC=
L1_RPC=
REGISTRY_CONTRACT=
DATABASE_URI=./db.sqlite
  • Register and Deploy your Micro-rollup
npx @stackr/cli@latest register
npx @stackr/cli@latest deploy
  • Start the game in dev mode
npm run dev
# open localhost:5173/dev
  • Start in production mode
npm start