ChessDotNet.Variants.Horde.HordeChessGame.IsHordeDestroyed C# (CSharp) Метод

IsHordeDestroyed() публичный Метод

public IsHordeDestroyed ( ) : bool
Результат bool
        public bool IsHordeDestroyed()
        {
            for (int i = 0; i < BoardHeight; i++)
            {
                for (int j = 0; j < BoardWidth; j++)
                {
                    if (Board[i][j] != null && Board[i][j].Owner == Player.White)
                    {
                        return false;
                    }
                }
            }
            return true;
        }