Walter Bender wrote:
> I want to be
> able to let people join in two different ways: as a cooperator or as a
> competitor. 
...
> is there any mechanism in your
> recent work that would support this?

I haven't attempted to code anything of this sort, but if I were building
such an activity from scratch, I would probably use Groupthink's
AddOnlySet to maintain a set of team names, and provide a UI on startup to
allow users to select an existing team or create a new one.  Teams would
then be represented as some very general object like a CausalDict (a
shared python dictionary), accessible as self.group[team_name].

Groupthink is not actually capable of providing access controls, so
competitors will be able to "cheat", either by altering each other's state
or by observing secrets.  I am generally content to let the UI be
responsible for preventing "cheating".

--Ben

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel

Reply via email to