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

Share game board #18

Open
quozl opened this issue Feb 27, 2019 · 5 comments
Open

Share game board #18

quozl opened this issue Feb 27, 2019 · 5 comments

Comments

@quozl
Copy link
Contributor

quozl commented Feb 27, 2019

When the activity is shared, the two users play different maps. They should play in the same map.

Summary: Add collaboration to Cookie Search activity

Many Sugar activities can share their state among a group of children using the same wireless network.

Cookie Search doesn't currently do this, though it does import some of the required library. It could be a bug, or it could be unfinished.

Our CollabWrapper library can be used, and it includes a test activity.

You may need to Port to Python 3 to get started, if nobody else has done that yet.

@sanjaymaniam
Copy link

@quozl I'd like to try fixing this, but I presently do not have access to another machine. I'm thinking of using two virtual instances of Sugar Desktop on a host. Is this an advisable way to test collaborate or do I need to arrange for another machine before I get started?

@quozl
Copy link
Contributor Author

quozl commented Mar 2, 2020

Thanks for asking. Collaboration can be tested with two or three virtual machines. Install Sugar on each in turn.

Don't clone the virtual machines unless you either (a) clone before running Sugar the first time, or (b) remove all the Sugar user identity files in the home directory. Otherwise collaboration will fail.

The virtual machines must be configured to share a virtual network. I can't be precise about that because there are lots of different ways to run virtual machines. But if they can ping each other by mDNS resolution after changing hostname to be unique, then the virtual network is operating correctly;

ping -c 10 hostname.local

Test your configuration against collaboration using the Chat activity. See documentation.

Also look at the CollabWrapper test activity.

Feel free to search for and maintain, or write up a How to test collaboration section of sugar-docs repository.

@quozl
Copy link
Contributor Author

quozl commented May 8, 2020

Collaboration code in this activity appears to be a copy and paste from another activity during development, so adding collaboration will take much thought. Alternatively, it could be removed.

@sanjaymaniam
Copy link

sanjaymaniam commented May 8, 2020

Yes. It was very similar to the Flip Activity. However, I couldn't wrap my head around the need for collaborate in Cookie Search. I'm not working on this for that reason. If I were to start over, I'd play a bunch of multiplayer minesweeper first.

@quozl
Copy link
Contributor Author

quozl commented May 8, 2020

Thanks. Our misguidance came from "oh look, it imports Telepathy, we have to port it and make sure collaboration works."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants