Exemple #1
0
        static void Main(string[] args)
        {
            BestMoveFinder bmf  = new BestMoveFinder();
            var            move = bmf.FindBestMove("8/1q2k3/8/8/8/1Q6/8/4K3 b - - 0 1");

            Console.WriteLine($"FromX: {move.FromX} FromY: {move.FromY} DestX: {move.DestX} DestY: {move.DestY}");
        }
Exemple #2
0
        public Player(IGameStateReader gameStateReader, IKeyPresser keyPresser)
        {
            this.gameStateReader = gameStateReader;
            this.keyPresser      = keyPresser;
            bestMoveFinder       = new BestMoveFinder(1);

            previousState = null;

            target       = null;
            stashAllowed = true;
        }