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:
parent
b376525785
commit
65108902e6
1 changed files with 3 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue