-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smart Contract for Minigame: Memory Game #62
Comments
Hi, I am a beginner Cairo developer from Paris. |
Mind if I try this one? I'm an experienced Cairo developer and I have good knowledge of Dojo. |
I’d love to work on this task and contribute to the project. I’ll be participating in the ETHDenver hackathon, and I see this as a great opportunity not only to help improve the project but also to grow my skills by tackling this issue. |
Mind if I take this issue? |
May I be assigned to this? |
Hey, I'm a software developer having experience of React and want to contribute to the issue. |
Hi @EjembiEmmanuel this one is yours, if you need help don't hesitate to contact me please 🫡 |
Sure, thank you! |
Hi @EjembiEmmanuel, do you have updates? or do you need help? |
If there is no updates, i am still interested to crash this task for you =) |
Hi @coxmars I'll create a PR today |
Description
This task focuses on creating a smart contract function,
validateSequence
, using Dojo Engine and Cairo, to verify the correctness of sequences entered by the player in the Memory Game. Additionally, the function should include logic to update the Tamagotchi's intelligence level based on the player's performance in the minigame.The design of the game mechanics aligns with the frontend implementation outlined in the issue Memory Game Minigame, which describes different concepts and progression systems for memory-based gameplay. This backend logic ensures the minigame's functionality supports the cognitive development of BabyBeasts in an engaging and rewarding manner.
Tasks
Define the
validateSequence
Function 🧩validateSequence
with the following parameters:player_id
: The ID of the player participating in the minigame.tamagotchi_id
: The ID of the Tamagotchi associated with the game.input_sequence
: The sequence provided by the player.target_sequence
: The correct sequence for the current level.input_sequence
with thetarget_sequence
to determine if the player's input matches.true
for correct,false
for incorrect) and a score based on accuracy and speed.Update Intelligence Logic 📚
Integrate with Dojo Engine ⚙️
Testing and Validation ✅
Deliverables 📂
validateSequence
function in Cairo.Acceptance Criteria 🎯
validateSequence
function accurately validates player input and returns results.Additional Notes 📝
The text was updated successfully, but these errors were encountered: