New Ethereum talks, every Monday. The week's conference uploads by event, in your inbox.

Loading player…

2024 ETHTaipei Demo Day - Team 1: Ten Taipei Football Manager

ETHTaipeiWed, Oct 9, 2024, 12:00 AM

Transcript

[Music] open the show I don't want to know what's happen GM everybody thank you for being here I'm going to present uh 10 type Football manager me and built a fully unchain game using private States on 10 protocol the football manager games we all know them they come in different shapes different forms and on different platforms but the only thing they are not onchain yet why is this well there's an issue with unchain gaming and the issue is is because everything's on the blockchain is public so you cannot have private strategies and that's the big problem if you have Asic information games like a football manager game and also Randomness is a known issue on the blockchain how can this be solved well on Friday we learned about 10 protocol and it has all the things we need to build a game like this it has private States it has Randomness built in and for me as a developer it's great that it's 100% evm and uses solidity but because it's hackathon of course we also deployed our game on optimism thunderc polygon Lia and scroll without private state so you can cheat there let's see what we did this hackathon we built on top of an existing game so we reused some of the front end components but the smart contract we built in solidity from scratch using uh a full game Flow with async information we the time lock to prevent ghosting which I'll explain later and the smart contract pays out the winners upon completion and we also buil the smart contract interactions from scratch so let's go over the game Flow to start a game you propose a game and the Challenger stores his strategy privately onchain the opponent then can see the game and accept and he his strategy publicly on chain and both will transfer the amounts into the smart contract well after this the Challenger he knows his own strategy he knows the opponent strategy and he can then call the smart contract to Ral his private strategy and based on these two strategies and some Randomness the outcome is calculated and the game is played after this we pay out wi but because the opponent uh now because the Challenger he can see what the opponent did in step two he could potentially ghost the game and says okay his strategy is so good I will not win I will just abandon which would result in the funds being locked up in the contract so we prevent this from happening by adding a time blck after a certain amount of blocks for acon used 100 to keep it very quick for testing the opponent can call if the Challenger didn't finish the game to extract all the funds without knowing the strategy of the Challenger and now I will quickly demo so I will sit down for this so this is uh the front end and it's the it's the landing page and we can go to the create game Flow we added different teams to our game and here you fill in the opponent's address and you can how many tokens you want to W here we created our own token for this game and here you see uh a football pitch you can select different types of formations that you want to play and for example we're going to play this formation now I have to look at all the different players and say like this guy is a pretty good Defender we're going to put this guy here this guy there and basically you just pick whichever player you want from this team and put them on the pitch there we go so we picked the information and here you can see for every player the stats that they have which is important of course and now we start a game and this will trigger the metamask popup so we confirm and this stores the information we just select is now stored privately on chain that's only accessible by me and the game is now created and let's see the CH the opponent now also uh picks a formation and for the sake of time we already did this for a different game so this is another game both formations are already decided and I want to say let's play this game and see what happens now I completed the game wait a little bit H and the game ends in a draw result and here we can see the other games that we played before so yeah that's basically uh the app that we built go back to impation so that's what we built and now uh we want to keep building so we have some things in mind that we want to build after the heon we want to have some more sophisticated game logic because during acon you can only do so much so now it's rather simple and we want to add new features like adding mix and tournaments where you can rer a lot more money because it spends over a longer time period we want to have leaderboards and we want to replace the players that are now in the game by nfts that you can trade and make the game more interactive and also we're thinking about what should we do for token do we just just use the stable coin or do we introduce our own token this is the team I'm Aran and um he worked on this from turkey and thank you for your [Applause] time thank you uh any questions any questions yes where does the randomness come from where does the randomness come from uh good question um we used uh 10 protocol and they have Randomness built in I'm not exactly sure how how that works but uh yeah we use that [Music] for so we uh use uh private me pool and in the private pool uh nobody else a minor validator can see the random number that is generated so you have secure onchain random number generation nobody can cred or see so you can use it without a VF all right uh all right thank you [Applause] thank

Automatic transcript — names and jargon may be misspelled.