-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEngine.cs
More file actions
33 lines (27 loc) · 1.23 KB
/
Engine.cs
File metadata and controls
33 lines (27 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using chessBot.ui;
using chessBot.Search;
namespace chessBot
{
public class Engine
{
public static readonly string startPos = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
public static Board board;
public static void Main(string[] args)
{
const string SICILIAN = "rnbqkbnr/pp1ppppp/8/2p5/4P3/8/PPPP1PPP/RNBQKBNR w KQkq c6 0 2";
const string MIDDLE_GAME = "r1bq1rk1/ppp1bppp/2n1pn2/1B2N3/3P4/2N5/PPP2PPP/R1BQ1RK1 w - - 5 10";
const string EN_PASSANT = "rnbqkbnr/pppp2pp/5p2/3Pp3/8/8/PPP1PPPP/RNBQKBNR w KQkq e6 0 3";
const string RANDOM_GAME = "r1bqkb1r/pp1n1pp1/4pn2/2Pp2p1/1p1P4/2N1PN2/PP3PPP/R2Q1RK1 w kq - 0 10";
const string BOTTOM_LEFT_L = "8/8/8/8/8/8/P7/PP6 w - - 0 1";
const string KIWIPETE = "r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - 5 10";
Attacks.Init();
string customPos = "rnb1kbnr/ppp2ppp/8/8/3pP3/8/PP2PPPP/RNBQKB1R b KQkq - 0 6";
board = new Board(startPos);
Move? bestMove = Search.Search.findBestMove(board, 4);
Console.WriteLine($"{(Square)bestMove?.fromSquare}{(Square)bestMove?.toSquare}");
// Perft.Run(board, 5);
// Perft.Divide(board, 1);
// board = new Board(startPos);
}
}
}