-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
[examples] Adds RockPaperScissors example #715
[examples] Adds RockPaperScissors example #715
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great to see a test showing an example of how the game is played. Something similar to what is in Hero.move, using the TestScenario
module.
Never mind! :-) My page refreshed and I see the other file containing the test! |
sui_programmability/examples/games/tests/RockPaperScissors.move
Outdated
Show resolved
Hide resolved
sui_programmability/examples/games/sources/RockPaperScissors.move
Outdated
Show resolved
Hide resolved
@awelc can you please add your review? I’m unable to merge because you requested changes before. |
@damirka: I think you should be able to do "dismiss review" (and this is 100% culturally acceptable) I have done this for you to unblock, but let me know if there's a permissions issue that stops you from doing this for some reason. |
Context: The `BatchLoader` is establishing a primary->worker communication using a public address, which is adding latency and competing with outbound traffic. The proper fix us to use the `BlockWaiter`. The issue: We would like a mitigation to be deployed and effective sooner. The fix: We inspect the worker addresses used by the `BatchLoader`, and rewrite their hostname to localhost when it matches the local primary.
Context: The `BatchLoader` is establishing a primary->worker communication using a public address, which is adding latency and competing with outbound traffic. The proper fix us to use the `BlockWaiter`. The issue: We would like a mitigation to be deployed and effective sooner. The fix: We inspect the worker addresses used by the `BatchLoader`, and rewrite their hostname to localhost when it matches the local primary.
This PR is pretty self-explanatory. Adds an example of a game based on the commit-reveal scheme.