Skip to main content

Timeline for Guess the number game , not working

Current License: CC BY-SA 4.0

6 events
when toggle format what by license comment
Sep 3, 2022 at 18:09 comment added Jeremy Then Take a look at he update of my answer. I added a new play3 implementation example showing a new logic and saving a record of the result in a mapping so you can debug better.
Sep 3, 2022 at 18:08 history edited Jeremy Then CC BY-SA 4.0
Improving explanation
Sep 3, 2022 at 16:01 comment added Jeremy Then Yes. Or you could use hardhat console.log to debug.
Sep 3, 2022 at 15:49 vote accept Rjey
Sep 3, 2022 at 15:48 comment added Rjey Thanks a lot brother. The contract did actually work thanks to your suggestion. I used that return to print out the random number and guesses for the player to check their answers, which now seems so dumb to myself as well,do you think I should use event and emit for such purpose?!
Sep 3, 2022 at 15:38 history answered Jeremy Then CC BY-SA 4.0