Ejemplo n.º 1
0
        public void PickMove_TerminalState_Fails(ISearchAlgorithm searcher)
        {
            // Checkmate
            var state = State.ParseFen("8/8/p7/8/P7/1Kbk4/1q6/8 w - - 4 59");

            Assert.Throws <ArgumentException>(() => searcher.PickMove(state));

            // Stalemate
            state = State.ParseFen("rn2k1nr/pp4pp/3p4/q1pP4/P1P2p1b/1b2pPRP/1P1NP1PQ/2B1KBNR w Kkq - 0 1");
            Assert.Throws <ArgumentException>(() => searcher.PickMove(state));
        }