StanfordHCI / bang

💥 Helping people meet for the first time, more than once 💥
MIT License
2 stars 1 forks source link

Function to calculate "best" team #409

Closed michellexing closed 5 years ago

michellexing commented 5 years ago

OVERVIEW: each team should have a field such as "score" which is calculated by a function that we can change depending on what we're looking at specifically. As the rounds happen, the best score/team should be kept track of (which amounts to keeping track of the round number) so that we can later reconvene the "best" team in the last unmasked round

Round 1: Masked Team A Round 2: Masked Team A Round 3: Masked Team A Round 4: Masked Team A Round 5: UnMasked Team A from Round X (e.g. Round 3)

Examples of functions: 1) Viability score based on mid-survey

    {
        1: 'Strongly Agree', 
        2: 'Agree', 
        3: 'Neutral', 
        4: 'Strongly Disagree', 
        5: 'Disagree', 
    }
    function calculate_team_viability {
         //sum of all responses of a team
    }

referenced in issue #408 and #410

markwhiting commented 5 years ago

Other functions might be something that we write that processes a chat interaction and provides a performance score. Basically we just want to be able to run a callback that takes round data and returns a score.