A happy approach to online research.
Online docs: https://smile.gureckislab.org
- VS Code + Volar
- Node.js
- A git client (VS Code built in works!)
- The GitHub command line tool
- in
stores/firestore-db.js
, add lines commented "for rtdb". This allows us to use rtdb in other files. - added
multi-player.js
- includes the
WaitRoom
object for matching players (frommatching.js
indyadic-learning-trap-task
, branchv3
) - also includes the stuff from
user.js
indyadic-learning-trap-task
, branchv3
- includes the
- have a list of unmatched players in rtdb
- for new player, if list is empty, add self to list. else, try to match with first person on the list that isn't currently in the proces of pairing.
- while pairing, make sure to check that proposed partner's partner is me
- use transactions to avoid collisions? if things change during proposal, move on to proposing to someone else