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

Feature: Maze Puzzle Challenge #394

Open
Kaps61929 opened this issue Jan 25, 2024 · 15 comments
Open

Feature: Maze Puzzle Challenge #394

Kaps61929 opened this issue Jan 25, 2024 · 15 comments
Assignees
Labels
enhancement New feature or request feat

Comments

@Kaps61929
Copy link
Contributor

Description

Functionality Overview:

The Maze Puzzle Challenge integrates with the alarm app, requiring users to navigate through mazes of varying difficulty levels.
Users start at the beginning of the maze, and upon successfully reaching the destination, the alarm deactivates, providing a gamified and interactive wake-up experience.

User Impact:

Engaging Wake-Up Routine: Introducing a maze puzzle adds an element of fun and challenge to the wake-up process, making mornings more interesting and motivating for users.
Customizable Difficulty Levels: Catering to users with different preferences, the feature offers three levels—easy, medium, and hard—allowing individuals to tailor the challenge to their desired intensity.
Enhanced Mental Engagement: Solving a maze stimulates cognitive activity, providing a positive and energizing start to the day, contributing to the overall well-being of the user.

I want to work on this issue, so please consider assigning it to me.

Screenshots

Something like this

Screenshot 3
@Kaps61929 Kaps61929 changed the title Feature:Maze Puzzle Challenge Feature: Maze Puzzle Challenge Jan 25, 2024
@MarkisDev MarkisDev added enhancement New feature or request feat labels Feb 3, 2024
@MarkisDev
Copy link
Collaborator

This is also quite interesting! It'll have to be different each time (or most of the times) to make it actually useful.

I've assigned this to you.

@Kaps61929 Kaps61929 removed their assignment May 31, 2024
@vedang999
Copy link

vedang999 commented Jul 13, 2024

I'm thinking of showing user a simple math equation & let him dismiss alarm if he is correct.
i could use an API here & a card would pop up on alarm asking a math question.
Could you assign this to me? @MarkisDev
I'll try to complete this in 1-2 weeks.

@AryanSarafDev
Copy link
Collaborator

I'm thinking of showing user a simple math equation & let him dismiss alarm if he is correct. i could use an API here & a card would pop up on alarm asking a math question. Could you assign this to me? @MarkisDev I'll try to complete this in 1-2 weeks.

@vedang999 Hey! The maths challenge already exists in the app. You can try coming up with a new feature or complete the puzzle challenge in this issue

@vedang999
Copy link

Ok then I'll work on the maze functionality.
Could you assign this to me? @MarkisDev @AryanSarafDev

@AryanSarafDev
Copy link
Collaborator

@vedang999 I am assigning this to you. But before implementing the feature, you can first discuss your approach here. If there'll be any issue we will sort it out, so that you won't have to redo it👍

@vedang999
Copy link

vedang999 commented Jul 17, 2024

@AryanSarafDev I'm planning to use this package.
https://pub.dev/packages/maze
There would be option in setting to enable/disable maze option.
On trigger of alarm ,a card view would show up, on which maze will display & user solves it to turn-off the alarm.(direct dismiss)
Should I proceed?

@AryanSarafDev
Copy link
Collaborator

AryanSarafDev commented Jul 17, 2024

Yes you can proceed @vedang999

@vedang999
Copy link

vedang999 commented Jul 25, 2024

@AryanSarafDev
a quick update on my work..
I've added maze challenge..pic below.
I'm working on controllers for it & overflow now.
WhatsApp Image 2024-07-25 at 5 01 21 PM

@vedang999
Copy link

Hi @AryanSarafDev

I am working on implementing the maze challenge state using shared preferences. My initial approach involves saving a variable in the format <userMazePref, alarmId> for each alarm and calling a destructor where needed. However, this seems like a brute force method.

An alternative approach could be to follow the implementation used for the math challenge, utilizing variables such as isMathEnabled and defining similar ones for the maze challenge.

Could you please provide insights on the changes made to the files during the math challenge implementation? This will help me ensure consistency and efficiency while adding the maze challenge feature.

@AryanSarafDev
Copy link
Collaborator

AryanSarafDev commented Aug 3, 2024

@vedang999 Sure! Add 'isMazeChallengeEnabled' to the alarm model in the database. For handling the ui to enable it, make an observable variable using GetX in addorupdatealarmcontroller file and use it to update the value of the switch and while saving the alarm too. Ask if you need further explanation!

@vedang999
Copy link

vedang999 commented Aug 3, 2024

@AryanSarafDev
Sure
Could you tell me particular commit in which Math challenge was added (using isMathEnabled variable in alarm model)
So I could follow similar working.

@vedang999
Copy link

image

@AryanSarafDev
I have updated the code to include an isMazeEnabled variable in the model and verified its functionality in the ISAR database. However, I am encountering the following error logs. Is this related to the SQLite Firestore database? If so, is it possible to add another field to its schema?

@AryanSarafDev
Copy link
Collaborator

AryanSarafDev commented Aug 4, 2024

@AryanSarafDev
Sure
Could you tell me particular commit in which Math challenge was added (using isMathEnabled variable in alarm model)
So I could follow similar working.

@vedang999 For the SQLite error, in the isar database and firebase provider file theres a SQL command to create a table. Add your columns there too

@vedang999
Copy link

hey.. @AryanSarafDev
i added mazeenabled variable to isar & alarm models
The data is added to ISAR db but UI is stuck on loading when an alarm is added.
Can you please tell which portion of code to be changed further?
image
image
image

@AryanSarafDev
Copy link
Collaborator

AryanSarafDev commented Aug 21, 2024

hey.. @AryanSarafDev i added mazeenabled variable to isar & alarm models The data is added to ISAR db but UI is stuck on loading when an alarm is added. Can you please tell which portion of code to be changed further? image image image

Hey @vedang999 ! Did you add the column to the sqlite table too and everywhere the model is used?

And pull the latest commit from the main branch. Lot of things have changed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feat
Projects
None yet
Development

No branches or pull requests

4 participants