TwoPlusAnyNumber
TwoPlusAnyNumber is a sample game, which demonstrates the seating properties
of a game which requires two players (the "captains") plus any number of
other players. (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 both captains' seats are occupied.
Sending sit(self)
with no seat ID has the default
behavior: you are placed in the first unoccupied seat. (The captains' seats
are preferred, if unoccupied.) If no seat is
unoccupied, the call fails.
Seat IDs
captain0
captain1
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