Skip to content
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

[CONTRACT] feat: Implement Dynamic Daily Reset for DailyPlayerStat #234

Open
manlikeHB opened this issue Feb 28, 2025 · 4 comments · May be fixed by #268
Open

[CONTRACT] feat: Implement Dynamic Daily Reset for DailyPlayerStat #234

manlikeHB opened this issue Feb 28, 2025 · 4 comments · May be fixed by #268
Assignees
Labels

Comments

@manlikeHB
Copy link
Collaborator

Description
Track each player's last attempt timestamp using last_attempt_timestamp inside the DailyPlayerStat struct. This ensures that each player's stats reset dynamically on their first attempt of a new day. Check if last_attempt_timestamp is from a previous day: If yes, reset DailyPlayerStat, If no, proceed normally.

Acceptance Criteria

  • last_attempt_timestamp added to DailyPlayerStat.
  • submit_guess correctly resets all relevant player stats if the last attempt was from a previous day.
  • last_attempt_timestamp updates on every guess submission.
  • Unit tests to ensure proper functionality.
@kcmikee
Copy link
Contributor

kcmikee commented Feb 28, 2025

Hi Team,

I’m Mike, a returning contributor and a Diamond-tier contributor with over 5 years of experience in software and blockchain development.

I’d like to take on the task of tracking each player’s last attempt timestamp and resetting their stats dynamically if their last attempt was on a previous day.

I’m available to dedicate 12 hours to this task and can start immediately. Let me know how I can help!

Looking forward to contributing.

@ryzen-xp
Copy link
Contributor

Hi,
I am proficient Blockchain developer expert in Cairo , Rust and Solidity and also in web development.
I have contributed many starknet ,stellar projects and more .
please /assign Me this issue .
Thank You !!
ETA: 10 hours

@manlikeHB manlikeHB removed the ODBUILD label Feb 28, 2025
@od-hunter
Copy link

Hi, please can I be assigned this please? I would love to be the given the opportunity to solve this issue please. I have experience in html, css, JavaScript, TypeScript cairo and Rust.

I’m ready to work, kindly assign.

@FrankiePower
Copy link

Can I work on this, please?

ETA; 12 HOURS

@kcmikee kcmikee linked a pull request Mar 4, 2025 that will close this issue
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants