diff --git a/Chess-Challenge/src/Framework/Application/Core/ChallengeController.cs b/Chess-Challenge/src/Framework/Application/Core/ChallengeController.cs index f27ed51..7a1b89a 100644 --- a/Chess-Challenge/src/Framework/Application/Core/ChallengeController.cs +++ b/Chess-Challenge/src/Framework/Application/Core/ChallengeController.cs @@ -3,6 +3,7 @@ using ChessChallenge.Example; using Raylib_cs; using System; using System.IO; +using System.Linq; using System.Runtime.ExceptionServices; using System.Text; using System.Threading; @@ -66,7 +67,7 @@ namespace ChessChallenge.Application BotStatsA = new BotMatchStats("IBot"); BotStatsB = new BotMatchStats("IBot"); - botMatchStartFens = FileHelper.ReadResourceFile("Fens.txt").Split('\n'); + botMatchStartFens = FileHelper.ReadResourceFile("Fens.txt").Split('\n').Where(fen => fen.Length > 0).ToArray(); botTaskWaitHandle = new AutoResetEvent(false); StartNewGame(PlayerType.Human, PlayerType.MyBot); @@ -448,4 +449,4 @@ namespace ChessChallenge.Application boardUI.Release(); } } -} \ No newline at end of file +}