Exemplo n.º 1
0
        private void LoadGame(string filename)
        {
            string game = My.ReadFromFile(filename);

            bord.Load(game);
            Display(bord);
            notation = new Notation(listView1);
            AanZet   = notation.Load(game); //V121
        }
Exemplo n.º 2
0
 private void TestCastling()
 {
     bord.Load(@"
     8-T . . .-K . .-T ;
     7-p . . . . . .-p ;
     6 . . . . . . . . ;
     5 . . . . . . . . ;
     4 . . . . . . . . ;
     3 . . . . . . . . ;
     2+p . . . . . .+p ;
     1+T . . .+K . .+T ;
       a b c d e f g h ");
     computer.maxPly = 1;
     //while(true)
     zet = computer.BedenkBesteZet(Kleur.WIT);
     Debug.Assert(computer.count == 16, "count <> ");
     Debug.Assert(computer.bestEval == 1, "bestEval <> ");
     //bord.PlaatsStuk(StukType.pion, Kleur.WIT, 2, 7);
     //zet = computer.BedenkBesteZet(Kleur.WIT);
     //Debug.Assert(computer.count == 6, "count <> ");
 }