Skip to content

mbouthemy/2048-to-earn

Repository files navigation

2048 To Earn

This game (2048) was built using React and TypeScript. It used Nextjs for the backend call.

It integrates with the npm package play2earn and demonstrates how to transform a web2 game into a web3 game which introduces the betting of Solana.

How To Play?

You can play 2048 To Earn on the Vercel website deployed: You need a Phantom Wallet with Solana (it can be used with devnet)

https://game-2048-web2to3.herokuapp.com/

Available Scripts

In the project directory, you can run:

npm run dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Credits

Thanks to mateuszsokola YouTube Channel for the original code of the 2048 game.

You can find it here:

(https://mateuszsokola.github.io/2048-in-react/)