chess/Chess/Game.cs
2024-04-04 22:33:02 +01:00

23 lines
615 B
C#

namespace Chess
{
class Game
{
private static void Main()
{
const string startingFen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
GameHandler handler = new GameHandler();
FENhandler fen = new FENhandler();
MoveChecker checker = new();
Board boardHandler = fen.ParseFen(startingFen, handler);
while (true)
{
boardHandler.DisplayBoard();
boardHandler = handler.PlayerMove(boardHandler, checker);
}
}
}
}