Beispiel #1
0
        private List <Cordinate> GetEmptyNeightbours(Cordinate cord)
        {
            List <Cordinate> freeNeightBours =
                cord.GetNeightbours().Where(c => c.X >= 0 &&
                                            c.X < Width &&
                                            c.Y >= 0 &&
                                            c.Y < Height &&
                                            Board[c.Y][c.X].State == FieldStateEnum.Empty).ToList();

            return(freeNeightBours);
        }