Skip to content

The simplified number guessing game that is run and hosted by Obscuro Labs.

Notifications You must be signed in to change notification settings

ten-protocol/guessing-game

Repository files navigation

Example Number Guessing Game (v2)

This template should help get you started developing with Vue 3 in Vite.

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Create Environment

Assumes a registered viewing key with Ten.

Create a file .env in the project root with the below contents, where USER_KEY is supplied when registering your VK's and PRIVATE_KEY should be the private key for the account that is registered with Ten. Do not share your private key with anybody! For more details please find all the registration steps in https://docs.obscu.ro/.

USER_KEY = <token> 
PRIVATE_KEY = <private key>

Compile for Development

npm run dev

Compile for Production

npm run build

Deploy Contract

npx hardhat --network ten deploy

Lint with ESLint

npm run lint

About

The simplified number guessing game that is run and hosted by Obscuro Labs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published