AnyNumberPairs is a sample game, which demonstrates the seating properties of a game which any even number can play, in partnered pairs. (The implementation enforces an upper limit, which is eight (four pairs) for purposes of demonstration. In a real-world game of this type, it would be perhaps twenty.) The game can begin whenever there's at least one pair of seats occupied.

Sending sit(self) with no seat ID has a special behavior: it tries to place you in an empty seat whose partner is occupied. If there is no such seat, you are placed in the first unoccupied seat. If no seat is unoccupied, the call fails.

Seat IDs

Translation tokens


More of my Volity work

Volity home page