We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
Great example! I learned a lot about this pattern for generating randomness.
I'm not sure about this line in placeBet():
require(userValue == 0, "Already placed bet");
Should it be:require(gameRounds[msg.sender].userValue == 0, "Already placed bet");
Yes of course. Missed your comment earlier. Thanks for the correction.
Great example! I learned a lot about this pattern for generating randomness.
I'm not sure about this line in placeBet():
require(userValue == 0, "Already placed bet");
Should it be:
require(gameRounds[msg.sender].userValue == 0, "Already placed bet");