BIDMCDigitalPsychiatry / LAMP-platform

The LAMP Platform (issues and documentation).
https://docs.lamp.digital/
Other
12 stars 10 forks source link

New cognitive game: Maze task #726

Closed Devayani0102 closed 1 year ago

Devayani0102 commented 1 year ago

A new cognitive game needs to be added to mindLAMP. More instructions about the game can be found on this Webpage: Maze Game

sarithapillai8 commented 1 year ago

@Devayani0102 The activities can be accessed from web browser also. So in that case do you want handle this with arrow buttons?

Devayani0102 commented 1 year ago

Yes, it makes sense to use arrow buttons on web browser. However, can we make sure that these arrows are not displayed in the app version?

sarithapillai8 commented 1 year ago

We are working on an algorithm to generate maze.

sarithapillai8 commented 1 year ago

@Devayani0102 It will be difficult to use pictures as maze. We have to find out the co-ordinations of maze wall to handle hitting of balls. We are working on the algorithm based on this - https://github.com/codebox/mazes.

sarithapillai8 commented 1 year ago

@Devayani0102 This game development is taking longer than expected. We have started 3 weeks back, but most of the time we spend on researching different ways to generate mazes matching the requirement and also for the ball movement. We are trying to give an update with initial level maze game in 2 weeks. And we are implementing for desktop with keyboard movements. After this we will be integrating accelerometer events for mobile apps.

Maze generation is completed using the algorithm. We tried using Joystick and it is not progressing as expected. So on the same canvas of maze, we are generating the ball shape and we are trying to incorporate the ball movement inside the maze using the cell positions. Please see the attachment that showing the progress of game.

https://user-images.githubusercontent.com/63710347/219030010-edfbce30-2c19-4f4b-a109-5886f93e8533.mp4

michaelmenon commented 1 year ago

Hi @Devayani0102 , we have assigned one more engineer to work on the accelerometer integration for mobile devices in parallel to the Desktop development. The maze development is completed, we will update asap after the game play integration.

sarithapillai8 commented 1 year ago

@Devayani0102 Please see the progress of ball movement in desktop version.

https://user-images.githubusercontent.com/63710347/219619983-bd0c41ab-3dd3-467b-8573-ecf3e0cf5a85.mp4

sarithapillai8 commented 1 year ago

@Devayani0102 We are continuing the development. Please see the progress in desktop version below. We will be providing another version to test on phone by the end of this week.

https://user-images.githubusercontent.com/63710347/220623242-7ae0afdc-6c41-418d-ae75-3d0dfb83923a.mp4

sarithapillai8 commented 1 year ago

@Devayani0102

Please see the attached demo videos for desktop and mobile versions. Is it ok to continue with the maze designs shown in these videos?

https://user-images.githubusercontent.com/63710347/221777541-52bdd92b-2ee4-4228-b568-e6d6a88e00b6.mp4

https://user-images.githubusercontent.com/63710347/221777550-f8fb8687-f107-4ff4-8ce8-e7541c0b8914.mp4

sarithapillai8 commented 1 year ago

@Devayani0102 Please see the progress of the game with 2 balls:

https://user-images.githubusercontent.com/63710347/222112585-63c5b904-9cc8-4146-a9de-872b37ff6b21.mp4

After going through the attached videos, please let us know which one we can proceed with. The initial development was done to generate the exact matching maze in the requirement. But It was hard to manage accelerometer events in that. This latest one is integrated with both mobile and desktop events. But we might not be able to generate the exact maze requested. Please share your suggestion.

sarithapillai8 commented 1 year ago

@Devayani0102 Did you get a chance to look into this? We are waiting for your confirmation to continue with the development. So could you please check and revert back?

Devayani0102 commented 1 year ago

The second version looks better. It is okay if the mazes are not same, however, we need to have levels (the number of circles/difficulty should increase). Is that possible in the current version? Also, the ball need to be bigger to make the game more accessible.

sarithapillai8 commented 1 year ago

Yes we can manage the difficulty levels with the number of circles. Ball can be made bigger. We can continue with the 2nd version. Thanks @Devayani0102 .

sarithapillai8 commented 1 year ago

@Devayani0102 Please check the attached video for the ball size change and let us know if this is enough.

https://user-images.githubusercontent.com/63710347/223099544-124fade0-f9ad-4fcd-83c4-710d30a23ca7.mp4

sarithapillai8 commented 1 year ago

@Devayani0102 We have implemented levels for the maze game. Please see the attached. We are working on the data format to be submitted as result of the game.

https://user-images.githubusercontent.com/63710347/223710493-cf0373ba-1bf6-46d3-af2c-b7b6c0d2f17f.mp4

sarithapillai8 commented 1 year ago

@Devayani0102 Do we need to start the game from level 1 always? We will not be adding ball number settings for the activity. From level 1 to 6, there will be 1 ball and above 6 there will be 2 balls.

Devayani0102 commented 1 year ago

Yes, the game will always start from level 1.

sarithapillai8 commented 1 year ago

We are facing some package issues while generating game build file for dashboard integration. Once it is fixed we can start QA and update dashboard staging.

ZCOEngineer commented 1 year ago

We had started QA, there is an issue that our QA reported. The ball getting stuck on borders on collision. We are working on a fix and its given to QA for testing. We shall update you once ready.

ZCOEngineer commented 1 year ago

We are doing QA and we hope to complete this by end of this week

divyav2020 commented 1 year ago

We have updated Maze game in Dashboard staging LAMP_Admin Website_New Game Request Maze.xls

Devayani0102 commented 1 year ago

The game is not loading in staging dashboard.

Screen Shot 2023-04-04 at 4 00 23 PM
sarithapillai8 commented 1 year ago

@Devayani0102 You are checking production(dashboard.lamp.digital), not staging(dashboard-staging.lamp.digital). To load game in production dashboard, you have to release the LAMP-activities repo.

image (10)

Devayani0102 commented 1 year ago

There is no option to add maze game for user in dashboard- staging.

Get Outlook for iOShttps://aka.ms/o0ukef


From: sarithapillai8 @.> Sent: Wednesday, April 5, 2023 12:20:55 AM To: BIDMCDigitalPsychiatry/LAMP-platform @.> Cc: Joshi, Devayani (BIDMC) @.>; Mention @.> Subject: Re: [BIDMCDigitalPsychiatry/LAMP-platform] New cognitive game: Maze task (Issue #726)


IMPORTANT: The sender of this email is from a source outside of Beth Israel Lahey Health. Please do not click on links or open attachments in this email unless you are certain it is safe to do so. If you are not certain this email is safe, please contact the BILH Service Desk.


@Devayani0102https://urldefense.com/v3/__https://github.com/Devayani0102__;!!AIv8Mrc!42nD6jVDNA2poAyKSsDfALzrzthZ-01UXF-3K-lkLh9Zh0h7NyDaLk1D0K-Jl08vMmdblJI3_YfQntUCzHqDFIPfaQ3NrCA$ We are not seeing any issues with the game. Could you please share the credentials to check?

[image (10)]https://urldefense.com/v3/__https://user-images.githubusercontent.com/63710347/229980052-f3071515-5ae1-40f7-a6b9-859223ffb59a.png__;!!AIv8Mrc!42nD6jVDNA2poAyKSsDfALzrzthZ-01UXF-3K-lkLh9Zh0h7NyDaLk1D0K-Jl08vMmdblJI3_YfQntUCzHqDFIPf-vqmvCY$

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/BIDMCDigitalPsychiatry/LAMP-platform/issues/726*issuecomment-1496897462__;Iw!!AIv8Mrc!42nD6jVDNA2poAyKSsDfALzrzthZ-01UXF-3K-lkLh9Zh0h7NyDaLk1D0K-Jl08vMmdblJI3_YfQntUCzHqDFIPfcpfcOhs$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AYW76GPQZEKVEQJ6FFEAKU3W7TXKPANCNFSM6AAAAAATPY2DY4__;!!AIv8Mrc!42nD6jVDNA2poAyKSsDfALzrzthZ-01UXF-3K-lkLh9Zh0h7NyDaLk1D0K-Jl08vMmdblJI3_YfQntUCzHqDFIPfaJilGXA$. You are receiving this because you were mentioned.Message ID: @.***>


PLEASE NOTE: This message is intended for the use of the person to whom it is addressed. It may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, your use of this message for any purpose is strictly prohibited. If you have received this communication in error, please delete the message and notify the sender so that we may correct our records. See our web page at http://www.bilh.org for a full directory of Beth Israel Lahey Health sites, staff, services and career opportunities.

Devayani0102 commented 1 year ago

https://user-images.githubusercontent.com/103677721/230036878-501ac1fb-4274-4956-b309-964fe72e7229.mp4

sarithapillai8 commented 1 year ago

@Devayani0102 You have to add activity spec "lamp.maze_game" using api.lamp.digital server. We have added on for api-staging.lamp.digital. If you have any credentials using staging server, please try.

Devayani0102 commented 1 year ago

Please take a look at the following feedback and let me know if you have any questions:

  1. The maze interface is not as sooth as we would like it to be. The ball seems to get stuck often, I also need to move my phone around too much to move the balls. This may be a result of the area between the circles being too small and the sensors are not sensitive enough.
  2. The first few mazes still look really small compared to the phone screen, for someone who is visually impaired, this will create a problem.

Possible solution is to make the maze size same across all levels and increase the numbers of circles inside with each level. We should also try to make it more sensitive to phone movement. I have attached an image as an example of what it can look like.

Screen Shot 2023-04-07 at 2 36 54 PM
sarithapillai8 commented 1 year ago

@Devayani0102 We are working on this. Most probably we can update the fixes by the end of next week.

divyav2020 commented 1 year ago

We have updated the changes in Dashboard Staging

Devayani0102 commented 1 year ago

The maze itself looks good. The ball is still getting stuck at the edge, but it is better than before. Is it possible to bounce the ball in other direction automatically when it touches a 'wall'.

The next step would be to work on the visualization in portal.

IMG_5528

The screen above should show an average of the time take to complete each level in seconds. For example, it took the participant following time to finish the levels: level 1 - 5sec, level 2- 10 sec, level 3- 15 sec, level 4 - 20 sec, level 5 - 25 sec. The final output on the graph should be 15 sec.

IMG_5529 On this screen it should display the time taken to finish individual levels in seconds.

divyav2020 commented 1 year ago

We have updated the changes in Dashboard Staging

Devayani0102 commented 1 year ago

The Game and Portal visualization looks good. I noticed that the scores are not saved when i exit the game after completing the level. The scores are saved only when I click 'no' in the dialogue box and wait for it to exit on its own. We need to save the scores every time someone completes a level regardless of wether they move to the next level, click on 'no', or exit using the back arrow.

The video below shows cases where it is not saving the result. https://user-images.githubusercontent.com/103677721/234359511-e145997b-49fd-4eaf-aa59-3befd43e2443.MP4

ZCOEngineer commented 1 year ago

@Devayani0102 the scores not getting saved issue, we shall check and get back

sarithapillai8 commented 1 year ago

@Devayani0102 Updated in dashboard-staging. Please review..

carlan1 commented 1 year ago

It appears that the activity will not load when running from the beta app. Is there a way to test this on mobile?

sarithapillai8 commented 1 year ago

@carlan1 Android beta is pointing to production now. That is the reason for not loading the game there. Can you check the website dashboard-staging? Or can u check in iOS testflight build dated 2023.4.19.

carlan1 commented 1 year ago

Game functional on dashboard-staging and mobile app.