Mathall
Mathall
CC#
Created by Mathall on 8/3/2024 in #help
Cannot generate assets for debugging VSCode cloned repository
This is so helpful thanks
10 replies
CC#
Created by Mathall on 8/3/2024 in #help
Cannot generate assets for debugging VSCode cloned repository
yeah thats what i just did
10 replies
CC#
Created by Mathall on 8/3/2024 in #help
Cannot generate assets for debugging VSCode cloned repository
oh boy did i ,gitignore it?
10 replies
CC#
Created by Mathall on 8/1/2024 in #help
Cannot center my top numbers with rest of written characters
Yea, right now I have it as if less than 10 {" # "} if more than 9 {" #"}
16 replies
CC#
Created by Mathall on 8/1/2024 in #help
Cannot center my top numbers with rest of written characters
Oh, interesting, I thought the font was just constant, is there a way in the code itself to change the font, or would I have to add another resource
16 replies
CC#
Created by Mathall on 8/1/2024 in #help
Cannot center my top numbers with rest of written characters
I personally dont know how to change the font in the console
16 replies
CC#
Created by Mathall on 8/1/2024 in #help
Cannot center my top numbers with rest of written characters
No description
16 replies
CC#
Created by Mathall on 8/1/2024 in #help
Cannot center my top numbers with rest of written characters
C#
public void RevealBoard()
{
//Add space + bar before X number key
Console.Write(" |");

//write X number key
for (int i = 0; i < Columns; i++)
{
//adds X key above the columns
if (i<10)
{
Console.Write($" {i} ");
} else if (i<99)
{
Console.Write($" {i}");
}
}
//Add divider line and cross before full divider line
Console.Write("\n--+");

//write divider line
for (int i = 0; i < Columns; i++)
{
Console.Write($"---");
}
//start next line
Console.WriteLine();


//for each tile in the board write its value
for (int i = 0; i < Rows; i++)
{
//adds Y key before each new row
if (i<10)
{
Console.Write($" {i}|");
} else if (i<99)
{
Console.Write($"{i}|");
}

for (int j = 0; j < Columns; j++)
{
Thread.Sleep(10);
ChangeColor(BoardArr[i,j]); //write each character with own color
}
//every row complete, move to the next row
Console.WriteLine();
}
}
C#
public void RevealBoard()
{
//Add space + bar before X number key
Console.Write(" |");

//write X number key
for (int i = 0; i < Columns; i++)
{
//adds X key above the columns
if (i<10)
{
Console.Write($" {i} ");
} else if (i<99)
{
Console.Write($" {i}");
}
}
//Add divider line and cross before full divider line
Console.Write("\n--+");

//write divider line
for (int i = 0; i < Columns; i++)
{
Console.Write($"---");
}
//start next line
Console.WriteLine();


//for each tile in the board write its value
for (int i = 0; i < Rows; i++)
{
//adds Y key before each new row
if (i<10)
{
Console.Write($" {i}|");
} else if (i<99)
{
Console.Write($"{i}|");
}

for (int j = 0; j < Columns; j++)
{
Thread.Sleep(10);
ChangeColor(BoardArr[i,j]); //write each character with own color
}
//every row complete, move to the next row
Console.WriteLine();
}
}
16 replies
CC#
Created by Mathall on 8/1/2024 in #help
Cannot center my top numbers with rest of written characters
Ok I actually found a fix really fast, just added another whitespace, and shorted the space between the double digits after 9
16 replies
CC#
Created by Mathall on 8/1/2024 in #help
Cannot center my top numbers with rest of written characters
its worth noting that below each is a whitespace, then a character (if nothing there then its just another whitespace)
16 replies
CC#
Created by Mathall on 7/31/2024 in #help
2d char array is not showing the 1 character
Ohh, thats a great thing yes, thank you, the max is going to be 8
13 replies
CC#
Created by Mathall on 7/31/2024 in #help
2d char array is not showing the 1 character
Oh i see what you mena
13 replies
CC#
Created by Mathall on 7/31/2024 in #help
2d char array is not showing the 1 character
But instead of numbers it is either white space or X's for mines
13 replies
CC#
Created by Mathall on 7/31/2024 in #help
2d char array is not showing the 1 character
I have i do the same thing
13 replies
CC#
Created by Mathall on 7/31/2024 in #help
2d char array is not showing the 1 character
Well fir the non number
13 replies
CC#
Created by Mathall on 7/31/2024 in #help
✅ how to add certain folders to .gitignore
ok got it all setup thanks
16 replies
CC#
Created by Mathall on 7/31/2024 in #help
✅ how to add certain folders to .gitignore
ok, thanks I appreciate it
16 replies
CC#
Created by Mathall on 7/31/2024 in #help
✅ how to add certain folders to .gitignore
ok i see, thanks
16 replies
CC#
Created by Mathall on 7/31/2024 in #help
✅ how to add certain folders to .gitignore
sorry
16 replies
CC#
Created by Mathall on 7/31/2024 in #help
✅ how to add certain folders to .gitignore
so straght from the IDE?
16 replies