Solution: Part 1
Build our own play-to-earn game.
We'll cover the following...
We'll cover the following...
Inheritance structure
For clarity and code maintainability, we'll separate VRF-related code from the parts of our game that don't depend on randomness.
TreasureHuntNoVRF.solis a base contract containing state variables and modifiers that don't depend on the VRF.TreasureHuntVRF.solwill inherit fromTreasureHuntNoVRF.soland contain all VRF-related inheritance, state variables, and anoverrideimplementation of the VRFfullfillRandomWords()function. However, it will not implement the constructor inherited from the VRF contracts; we'll save its ...