Allow for newline at end of Fens.txt file
Merge pull request #195 from joshuajeschek/fens-newline
This commit is contained in:
commit
9700276b51
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue