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

Display game results #21

Open
szerintedmi opened this issue Jul 5, 2017 · 0 comments
Open

Display game results #21

szerintedmi opened this issue Jul 5, 2017 · 0 comments

Comments

@szerintedmi
Copy link
Member

Display game results status.

  • during reveal:
    • current ticket (and guessed number)
    • revealed tickets with number (indicating own)
    • unrevealed tickets (indicating own)
  • after declare winner:
    • winning ticket (and guessed number)
    • own tickets

How
tickets[] can be read from contract by FE:

  • gameInstance.tickets.length
  • gameInstance.tickets(ticketId) returns an array:
[0] = address player
[1] = uint deposit
[2] = bytes32 secretBet
[3] = uint revealedBet

Can add new interface for easier client side management if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant