hurley87 / WordDuel

Home Page:https://word-duel-cf1t.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WordDuel

WordDuel is a P2P, fully onchain game built on Base and inspired by a popular New York Times game called Wordle. The difference is that you play a friend and if you win, you'll earn some ETH.

How do you play ?

WordDuel is a turn-based game meant to be played with two players in real-time. Each player takes a turn guessing the right word and hints are given along the way. You can learn more about the hints here.

You start by signing up with your email and depositing ETH into a wallet that's created on your behalf. To create a game or "duel", you'll declare your opponent's email and the cost for each guess. The only person who can accept the duel is the owner of the email you declared. Let's say the cost of each guess is 0.01 ETH. Each time a player makes a guess they'll have to spend 0.01 ETH. Whoever guesses the right word first, wins all the ETH that has been spent during the duel.

Follow me on twitter for all the latest updates.

Who am I?

My name is David Hurley. I'm an onchain developer at Seed Club, the leading consumer crypto accelerator. I've built Mojo and LFTG in my spare time.

Install

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Environment Variables

Copy the .env.example file and create your .env.local file.

NEXT_PUBLIC_RPC_URL - https://www.quicknode.com/
NEXT_PUBLIC_MAGIC_PUBLISHABLE_KEY - https://magic.link
RESEND_API_KEY - https://resend.com/
SECRET_KEY - https://chat.openai.com/c/e63fb1d7-4fb1-4b05-8cb8-f830fbd85e3c
NEXT_PUBLIC_DUELS_CONTRACT_ADDRESS - https://docs.base.org/guides/deploy-smart-contracts

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Mkae sure you add your env variables.

How You Can Contribute

Here's how you can get involved:

  • Submit a Pull Request: If you see any potential improvement, go for it. Any contributions are welcome.

  • Sponsor me I'm looking for at least $10,000 in sponsorship so that I go full-time into building this project.

Email me at dhurls99@gmail.com and we can play heads up!

About

https://word-duel-cf1t.vercel.app


Languages

Language:TypeScript 86.7%Language:Solidity 11.9%Language:JavaScript 1.0%Language:CSS 0.4%