Example #1
0
        public void TestSuicideIsIllegal()
        {
            GoBoard lGoBoard = new GoBoard(19);

            lGoBoard.PlayStone("B1", Color.Black, true);
            lGoBoard.PlayStone("A2", Color.Black, true);

            Assert.IsTrue(lGoBoard.IsSuicide(lGoBoard.Coord.At("A1"), Color.White), lGoBoard.ToString());
        }
        public void TestSuicideIsIllegal()
        {
            GoBoard lGoBoard = new GoBoard(19);

            lGoBoard.PlayStone("B1", Color.Black, true);
            lGoBoard.PlayStone("A2", Color.Black, true);

            Assert.IsTrue(lGoBoard.IsSuicide(lGoBoard.Coord.At("A1"), Color.White), lGoBoard.ToString());
        }
Example #3
0
        protected static void DumpBoard(GoBoard goBoard, SearchEngine searchEngine, List<string> parameters, string id, Worker.SendResponse proxy)
        {
            Console.Error.WriteLine(goBoard.ToString());

            Respond(proxy, id);
        }
Example #4
0
        protected static void DumpBoard(GoBoard goBoard, SearchEngine searchEngine, List <string> parameters, string id, Worker.SendResponse proxy)
        {
            Console.Error.WriteLine(goBoard.ToString());

            Respond(proxy, id);
        }