amaatouq/netwise

Get actual alters rather than alterIds

Opened this issue · 5 comments

Would it be possible that player.get("alters") return an actual list of player object? This will make it possible, for example, in "Guess the correlation game" to show the alter reactive answer without searching for the otherPlayer in the game object.

This is particularly important because it will be very common for those types of experiments to connect people together and have them interact with their neighbors. We should make it very easy for them to do that (without requiring them to use the game object). If this is very hard to do, then at least providing the game designer with helper functions that will go over the alterIds and simplify things.

Also, it would be great to rethink a little bit the “alters” functions .. Player object should have “social network” set of helper functions. For example Player.alters.add() and Player.alters.get() which returns and sets alter objects directly .. even if behind the scenes it is dealing with alter ids only .. in Games where there is no network structure (i.e., everyone sees everyone) or something, the experimenter designer can opt to use the game object: game.get(“players”)

I agree with not making NetWise overly optimized for networks (the same way I am against making NetWise overly optimized for MTurk etc) to ensuring that each api we expose to increase the ease of use of the platform doesn't compromise flexibility of the things that can be done with it.. Let's talk about this in our next meeting.

Abdullah Idea: Have a Network object that manages all network interactions like Network.AddEdge(player1._id, player2._id) or Network.getNeighbours(player1._id, 2) (2nd degree), etc.