[Sugar-devel] Help needed to modify chat activity

Walter Bender walter.bender at gmail.com
Fri Apr 11 07:03:16 EDT 2014


Perhaps you can request a seed from the sharer?
(https://docs.python.org/2/library/random.html#random.seed)
I'm guessing that Maze does something similar to ensure both players
are using the same seed to generate the maze.

-walter

On Fri, Apr 11, 2014 at 4:57 AM, Rafikh <rafikh.sk at gmail.com> wrote:
> Dear all,
>
> We are modifying existing chat activity so that it can be used for
> teaching-learning arithmetic. We are facing some problems, we want to know
> following:
>
> If X and Y are two users,when an activity is shared from X and if Y joins
> it, does it mean a new instance of same activity is created on Y?
> Because we are generating and displaying some random value in activity
> class. Post sharing, the values differ on X and Y.
> How can we make the same random value share on Y? Is it possible?
>
> Please help us.
>
> Thank you,
>
>
> --
> Rafikh Shaikh,
> Homi Bhabha Centre for Science Education,
> Tata Institute of Fundamental Research,
> Mumbai, India 400088



-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org


More information about the Sugar-devel mailing list