Exemplo n.º 1
0
        public static string CheckEndGame(this Engine engine)
        {
            var reason = ChessHelper.checkEndGame(engine);

            if (reason == FSharpOption <Tuple <Command.SessionResult, string> > .None)
            {
                return(null);
            }
            else
            {
                return(reason.Value.Item2);
            }
        }