Modify the code in the following way:• Add “gold” to the game and keep track of how much you have.Show your gold amount under your HP (see example).• Start the game with 10 gold.• Killing a rabbit should increase your gold by 1.• When you goto town, add an option to buy a “sword” thatcosts 13 gold. You should only beable to buy this if you actually have 13 or more gold (noIOUs).• After buying the sword, you should do 3 damage instead of1.
PayPal Gateway not configured
PayPal Gateway not configured