Closed web3technologies closed 6 days ago
Hi @web3technologies, Can I be assigned this issue please? I am a Full-Stack Blockchain Developer and I possess a robust skill set in both front-end and back-end development, My experience includes html, css, react, JavaScript Cairo ,TypeScript, rust and GO.
Hi @od-hunter this is an issue dedicated to the ODHack that will begin tomorrow. Are you participating?
@web3technologies Yes sir/ma I’m in the od hack telegram group already and I’m eager to contribute. Here is a link to my Onlydust profile- https://github.com/od-hunter , it might not look like it now that is why I want you to give me the opportunity to proof my skill. A summary of how I intend to solve this issue is first of all I’ll have to redefine Player Model (ie change games_won and games_lost to arrays of MancalaGame.ids), the I’ll implement logic to append game IDs based on the result, then lastly I’ll create tests to verify correct appending of game IDs to games_won and games_lost. Please consider me thank you.
Hello Project Lead! I'm Ugo, a fullstack(js,React,Node,Next.js,Three.js) developer with a strong track record in OD hack projects. I've been actively involved since Edition 2, contributing to various initiatives, and I'm thrilled to be part of Edition 5! Having used OnlyDust extensively (see my profile: https://app.onlydust.com/u/Ugo-X)), I'm confident in my ability to tackle new challenges within this edition. I'm eager to leverage my skills and experience to contribute effectively.
Here's how I plan to approach the issue:
Model Update (Here's what I'd do):
Game Completion Function (Here's what I'd do):
Player
) and the ID of the game that just finished (MancalaGameId
).Unit Test (Here's what I'd do):
I can do this
@Ugo-X I just re-assigned this task to you if you still want it.
@the-first-elder already has another task for ODHack here
Hi @okhaimie-dev can you merge my previous task repo, so I can work on this. If @Ugo-X isn’t doing it.
Hi @okhaimie-dev can you merge my previous task repo, so I can work on this. If @Ugo-X isn’t doing it.
I am actively working on it and will send a PR this night or tomorrow.
We have a player model defined as this:
`#[derive(Model, Copy, Drop, Serde)] struct Player {
[key]
}`
We need to redefine the model so that games_won and games_lost are an array of MancalaGame.ids.
Then when the game is finished, in the actions we need to get the Player for a current player and append the game id to both player one and player two for the corresponding results.
It's important to add a unit test for this functionality.