4.19 Workshop: Popularity Contest

This workshop assumes that you have recently completed Workshop: Chicken.

In this workshop, we implement a two-party winner-takes-all vote, where a pollster proposes two candidates—Alice and Bob—along with a voting price and a deadline, then a participant class of voters each pay and cast their ballot. Once the deadline passes, the winning candidates takes the entire pot. This workshop introduces effective use of participant classes and parallelReduce.

This page is a placeholder for a future more detailed workshop. You could try to implement yourself though, given the sketch above! If you’d like to see a draft version of our code, please visit examples/popularity-contest in our GitHub repository