4.18 Workshop: Chicken

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

In this workshop, we implement a game of Chicken, where each player submits an equal wager, and then competes with the other to submit more transactions to the consensus before a deadline. In other words, they must decide between the risk of losing the entire pot and the risk of overspending on transaction costs. Like Workshop: Race, this demonstrates the deadweight losses associated with races, as discussed in the guide section on races.

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/chicken-race in our GitHub repository