public Particle(Pooint position)
 {
     fitness         = 0;
     Current         = position;
     HistoryPositons = new List <Pooint>();
     HistoryBest     = position;
     Velocity        = new Pooint(GetRandomNum.GetIntNumber(0, 50), GetRandomNum.GetIntNumber(0, 50));
 }
        private static List <Particle> MakeLudziki(Pooint SpawnOne, bool Choice)
        {
            List <Particle> Czastki    = new List <Particle>();
            int             jakiRodzaj = Choice ? iloscAut : iloscLudzikow;

            for (int i = 0; i < jakiRodzaj; i++)
            {
                int x = GetRandomNum.GetIntNumber(SpawnOne.X - 10, SpawnOne.X + 10);
                int y = GetRandomNum.GetIntNumber(SpawnOne.Y - 10, SpawnOne.Y + 10);
                if (Choice)
                {
                    Czastki.Add(new Car(new Pooint(x, y)));
                }
                else
                {
                    Czastki.Add(new Scout(new Pooint(x, y)));
                }
            }
            return(Czastki);
        }