How Filmder gets a group to agree on one movie
In a live test of Together for two, Filmder ended the session on a movie that only the person who had started the session liked. The rule at the time said that after fifteen swipes without a shared like, the app should take the host's first like, and that is what it did. We switched that rule off and rebuilt how a session ends, both for two people and for bigger groups.
Filmder picks a movie or a series by swiping, for one person, a couple or a group of up to ten. It is now out for Android on Google Play, and an iPhone version comes later.
A six-character code gets everyone in, and the line-up becomes a room
One person starts a session and gets a six-character code. Its alphabet has 32 characters with 0, O, 1 and I left out, so a letter and a digit cannot be confused when it is read aloud. The others type it in, scan its QR code or open the invite link filmder.app/j/<code> from a group chat. A code lets new people in for an hour after the session was created, so an old link in a chat stops working.
No account is needed: on Android the app knows a phone by a SHA-256 of its ANDROID_ID, or by the Google account if the person has signed in. When swiping starts, the server hashes the sorted identities and uses the hash as the key of a room, so the same two people next Friday land in the same room, and if they bring a third friend the server makes a new room for the three of them.
Members of a room join its evenings without a code. When one of them starts an evening, the others get a push notification, and the filters the room agreed on last time come back already selected, so the rest can confirm them with a tap.
A match needs a like from everyone in the session
Everyone swipes their own deck, and nobody sees how the others swiped. Swipes go to the server as ordinary HTTP requests, and the WebSocket only carries events from the server to the phones: partner_joined when someone comes in, the state of each vote, and match_found with session_finished at the end.
After each like the server counts how many people currently in the session have liked that movie, and the session ends when the count reaches the number of participants. If two people give the last missing like at the same moment, the session is closed with a compare-and-swap on its status, so only one of the two requests sends match_found.
Each deck is drawn at random from a catalog of more than a million cards, so two people's decks would almost never cross by chance. That is why, when a phone asks for the next card, there is a 50% chance the server hands it a movie that someone else in the session has already liked and this person has not swiped yet, with nothing on the card to show it. We kept it at half so each deck still has its own random films, since at 100% it would show only what the others had liked.
In Solo there is nobody to match with, so since version 1.5.0 a solo session ends on the first like, and collecting two, four, six or eight likes and playing them off in pairs is a setting.
Two people keep swiping until they both like the same movie
The swipe limit from that test is now zero by default, which the server reads as no limit. The code that picks the host's like is still there and comes back only if the limit is set to a number. Two people go on swiping until one card has both likes. For a couple a shared like is almost always within reach, and the mixed-in cards bring it sooner.
Three or more people vote after fifteen cards each
In a bigger group a movie everyone likes may never come up, so for three or more people, once every participant has swiped at least fifteen cards, swiping stops and the group votes. A shared like still ends the session at any point before that. While the vote is open new people cannot join, because a late arrival would change the count.
The shortlist holds up to six movies that at least a quarter of the group liked, rounded up, ordered by the number of likes, with the earlier like first when two are level. If fewer than two qualify, the server adds cards the group has already seen.
Each person picks one movie. In the first version a round always ran its full 30 seconds, and three people who had voted in five seconds sat watching the timer for the other twenty-five, so now a round closes as soon as everyone has voted. Ties are settled without a random step: a tie opens one more round between the leaders only, and a second tie goes to the movie with more likes, then to the one liked first, then by movie id.
Whoever starts a session can also set it to collect two or three matches first and then vote among them. The result of a vote is saved with its own reason, group_vote, and the result screen labels it "The group's favorite".