private void PrintBoardState(ChessBoardState board) { Console.WriteLine("******************************************"); Console.WriteLine((board.GetSideToMove() == ChessColor.White ? "White" : "Black") + "'s turn."); var moves = board.PossibleMoves().Select(x => x.ToString()).ToList(); Console.WriteLine(board); int moveId = 0; foreach (var move in moves) { Console.WriteLine($"{moveId}: {move}"); moveId++; } }