chess/Chess/Game.cs

23 lines
615 B
C#
Raw Normal View History

2024-04-04 21:33:02 +00:00
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);
}
}
}
}