using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace _2d { class Dit { public int x, y; } class Map { public void mp() { const int buy = 20; for (int i =…