1
0
Fork 0
mirror of https://github.com/dancojocaru2000/ai-project-idastar.git synced 2025-02-22 16:39:35 +02:00

Refactoring as suggested by VS Code

This commit is contained in:
Kenneth Bruen 2021-12-02 00:47:31 +02:00
parent b376525785
commit 65108902e6
Signed by: kbruen
GPG key ID: C1980A470C3EE5B1

View file

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