Esempio n. 1
0
        private CoOrdinate generatePosition()
        {
            //TODO - Delete a and uncomment bottom line
            CoOrdinate a = new CoOrdinate(RandomNumberGenerator.RandomNumber(999), RandomNumberGenerator.RandomNumber(999), RandomNumberGenerator.RandomNumber(99), RandomNumberGenerator.RandomNumber(9));

            Console.Write(a);
            return(a);
            //new CoOrdinate(RandomNumberGenerator.RandomNumber(999), RandomNumberGenerator.RandomNumber(999), RandomNumberGenerator.RandomNumber(99), RandomNumberGenerator.RandomNumber(9));
        }
Esempio n. 2
0
 public Position(CoOrdinate x, CoOrdinate y)
 {
     xCoOrdinate = x;
     yCoOrdinate = y;
 }