2d char array is not showing the 1 character
Hey all, im trying to make a console based minesweeper game, and i have a function that detects how many mines are around a given tile,
and I thought this was working well until, it realized it was showing whitespace(the blank tiles) when written to the console,.
yet when I check the debug values (below image), it does show its value is 1 or 2 or however many mines, but its character code is not that same value
Any help would be greatly appreciated!
6 Replies
How are you writing the value? "1" is not the same as 1
Actually, I see it
ToChar
it doesn't convert it to the unicode value
it just casts the value to charWell fir the non number
I have i do the same thing
But instead of numbers it is either white space or X's for mines
Oh i see what you mena
if you will only ever have 1 character wide counts, you can use
Ohh, thats a great thing yes, thank you, the max is going to be 8