Rock, Paper, Scissors! (web3) π
Diego Cortez / February 01, 2018
2 min read
TLDR:
So, long before NFTs, stock markets, youtubers, and Twitter trying to convince you to invest in crypto, there was this new technology to build stuff on the web. Web3, as we all know the buzzword now.
Ethereum network was starting this promise of decentralized applications for us web people. Solidity (ethereum smart contract language) had just launched a big update, so I tip my toes to give it a try.
So, yeah... I build a smart contract for a game of Rock, Paper, Scissors...
The app flow was as follows:
- If no game is available, you can start a new game of rock, paper, and scissors.
- When creating a game, you would put some ETH as a stake (a bet on your game). So you start a game putting 0.01ETH on the table (as an example).
- You also select your game option along with your bet. So you have Rock, Paper, or Scissors to choose from. Now you are ready!! Game placed.
- Other users can access the available games, decide to match your bet (on ETH) and choose their option.
- Drumrooolls... When both players placed their bets and choices, the smart contract would see which player (wallet) won the game and transfer the collected ETH to the winner's wallet!! (a small fee to the app wallet also)
It worked!! I made my first dApp on Ethereum.
But.....
Yeah... The prices are something else. It wasn't the best use of the ethereum network; I give you that. But gas prices render most products and solutions just plain useless.
Today is 2022-08-11, and I'm still waiting for a proper blockchain solution or use case that works and solve a user problem. In other words, not another Solution In Search of a Problem.
NFTs don't count.
TBA. Long story copy.