ChessDotNet.Variants.KingOfTheHill.KingOfTheHillChessGame.IsWinner C# (CSharp) Method

IsWinner() public method

public IsWinner ( Player player ) : bool
player Player
return bool
        public override bool IsWinner(Player player)
        {
            return IsKingInCenter(player) || IsCheckmated(ChessUtilities.GetOpponentOf(player));
        }
    }