Browse Source

Refactoring as suggested by VS Code

pull/1/head
Kenneth Bruen 3 years ago
parent
commit
65108902e6
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 7
      Program.cs

7
Program.cs

@ -27,7 +27,7 @@ algoBoard.AlgorithmStep += (_, threshold) => {
//top border
Console.BackgroundColor = border;
for (var i=0; i<algoBoard.Board[0].Count()+2; i++){
for (var i=0; i< algoBoard.Board[0].Count + 2; i++){
Console.Write(" ");
}
Console.ResetColor();
@ -56,7 +56,7 @@ algoBoard.AlgorithmStep += (_, threshold) => {
//bottom border
Console.BackgroundColor = border;
for (var i=0; i<algoBoard.Board[0].Count()+2; i++){
for (var i=0; i< algoBoard.Board[0].Count + 2; i++){
Console.Write(" ");
}
Console.ResetColor();
@ -67,8 +67,7 @@ algoBoard.AlgorithmStep += (_, threshold) => {
algoBoard.RunIdaStar();
void FormattedLabRow(string line) {
static void FormattedLabRow(string line) {
char[] characters = line.ToCharArray();
foreach (char c in characters) {
switch ( c ) {

Loading…
Cancel
Save