AIsOfCatan.API.Intersection.Intersection C# (CSharp) Method

Intersection() public method

public Intersection ( int first, int second, int third ) : System
first int
second int
third int
return System
        public Intersection(int first, int second, int third)
        {
            List<int> tiles = new List<int>(3) { first, second, third };
            tiles.Sort();

            FirstTile = tiles[0];
            SecondTile = tiles[1];
            ThirdTile = tiles[2];
        }