public static void Main()
Player player = new Player();
while (player.money != 0)
public class Player : Shop
public int Buy(int num01)
int final = money - num01;
public static void StockItems()
string[] items = {"\nSword of Souls\nprice: 50 gold", "\nMask of Stone\nPrice: 100 gold", "\nBoat of Boeing\nPrice: 200 gold"};
for (int i = 0; i < 3; i++)
Console.WriteLine(items[i]);
public string ReadyToBuy()
string[] items = {"\nSword of Souls\nprice: ", "\nMask of Stone", "\nBoat of Boeing"};
string PlayerInput = Console.ReadLine();
Console.WriteLine("Thank you for buying from Magic Shop! Enjoy your Sword of Souls!");
Console.WriteLine("You have: " + money + " gold remaining");
Console.WriteLine("Thank you for buying from Magic Shop! Enjoy your Mask of Stone!");
Console.WriteLine("You have: " + money + " gold remaining");
Console.WriteLine("Please type the name of the item you want to buy.");