AnyNumber
AnyNumber is a sample game, which demonstrates the seating properties
of a game which any number can play. (The implementation enforces an
upper limit, which is eight 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 seat occupied.
Sending sit(self)
with no seat ID has the default
behavior: you are placed in the first unoccupied seat. If no seat is
unoccupied, the call fails.
Seat IDs
seat0
seat1
seat2
seat3
seat4
seat5
seat6
seat7
RPCs
game.win()
-- The first client to send this wins the game.
More of my Volity work
Volity home page