SharedDailyKey$ ( index[,day] )

Parameters

index - which of the day's choices, from 1 to SharedDailyCount(day)

day (optional) - 0 for today (default), or -1 for yesterday

Description

Returns one of the day's choices: the key to give MatchSharedWorld.

The choices come in the order of the lists in b3d-shared-world.json, so with an easy, a medium and a hard list, SharedDailyKey(1) is the easy level. Show each in your menu, with SharedKeyPlayers for how many are playing it and the board's best, and when the player picks one, join with MatchSharedWorld(world, "My Game", name$, SharedDailyKey(pick)).

Once a day's choices are known they stay, so publishing a new version with new lists changes only the days after. An index out of range gives "".

For the full story - room keys, the day's choices and boards - see the Shared World guide.


See also: SharedDailyCount, MatchSharedWorld, SharedKeyPlayers, SharedRoomKey, QuerySharedGame.

Index