GithubHelp home page GithubHelp logo

rhezab / smile Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hartleylabnyu/smile

0.0 0.0 0.0 37.7 MB

a head-meltingly happy approach to online behavioral research

Home Page: http://smile.gureckislab.org

License: MIT License

Shell 1.77% JavaScript 58.14% CSS 0.10% HTML 0.17% Vue 39.43% SCSS 0.38%

smile's Introduction

๐Ÿซ  Smile.

A happy approach to online research.

Online docs: https://smile.gureckislab.org

Required software to work on this

rtdb_multiplayer branch changelog

  • 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 (from matching.js in dyadic-learning-trap-task, branch v3)
    • also includes the stuff from user.js in dyadic-learning-trap-task, branch v3

proposed matching logic

  • 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

smile's People

Contributors

gureckis avatar emilyliquin avatar guydav avatar pclittle avatar le-gris avatar pamop avatar nyu-comp-lab-student avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.