Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make walk deterministic so multiple screens will have similar content #11

Open
cartland opened this issue Oct 22, 2019 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@cartland
Copy link
Owner

The logic is run independently on each surface and we want to avoid communication, but it would be nice if the walks looked similar to each other (but still random).

Idea: Seed the waypoints for a person based on the timestamp of the NFC update. You should be able to generate enough waypoints after receiving the NFC timestamp update so that they stay synchronized for a long time (6 hours? forever?). The people will start out in random locations that are different, but as each person uses their wand, the maps will start to converge on similar behavior.

The NFC update contains a timestamp in the root of the document.

nfcData
- nfcLogicalId: "cartland"
- nfcReaderLocation: "hallway"
- nfcUri: "https://marauder-129.web.app/?logicalid=cartland"
timestamp: October 22, 2019 at 1:41:20 AM UTC-7
@cartland cartland added the enhancement New feature or request label Oct 22, 2019
@cartland
Copy link
Owner Author

cartland commented Nov 9, 2019

The random number generation is deterministic, but the code paths are not. Some parts appear consistent. For example, when a wand is tapped that individual path appears to act consistently on different devices. However, after a while, things seem to get out of sync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant