Beispiel #1
0
        static void Main(string[] args)
        {
            QuartoSearchTree tree = new QuartoSearchTree();

            string[] board = { "B3", "B4", "D1", "C2",
                               "D4", "A2", "A1", "B2",
                               null, "B1", "A3", null,
                               "C3", "D2", "A4", null };
            Piece[]  pieces = new Piece[MAXGAMEBOARD];
            moveData move   = new moveData();

            pieces[0].setValues("A1", false);
            pieces[1].setValues("A2", false);
            pieces[2].setValues("A3", false);
            pieces[3].setValues("A4", false);
            pieces[4].setValues("B1", false);
            pieces[5].setValues("B2", false);
            pieces[6].setValues("B3", false);
            pieces[7].setValues("B4", false);
            pieces[8].setValues("C1", true);
            pieces[9].setValues("C2", false);
            pieces[10].setValues("C3", false);
            pieces[11].setValues("C4", true);
            pieces[12].setValues("D1", false);
            pieces[13].setValues("D2", false);
            pieces[14].setValues("D3", true);
            pieces[15].setValues("D4", false);

            move = tree.generateTree(board, 8, pieces, 3);
        }