C
C#4mo ago
Ankyrex

Need help for my escape room array field

Hi, I want to make an console escape room and I want to create a field with a key and a door. Can someone help me with this ? Im pretty new to programming
11 Replies
Buddy
Buddy4mo ago
$details
MODiX
MODiX4mo ago
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, what you expect the result to be, what .NET version you are using and what platform/environment (if any) are relevant to your question. Upload code here https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code! (see $code for more information on how to paste your code)
Buddy
Buddy4mo ago
We do not help with entire projects
Angius
Angius4mo ago
"field with a key and a door" is not really a concept universal to C# So you'll have to share some more details
Ankyrex
AnkyrexOP4mo ago
I just want to make a board or field with 2D array but im not sure how to do it
Angius
Angius4mo ago
Which part?
Ankyrex
AnkyrexOP4mo ago
so that the console shows the 10x10 field
Angius
Angius4mo ago
Loop over your array Both of it's dimensions And print each element to the console, with Console.Write() Using WriteLine() only at the end of the row
Ankyrex
AnkyrexOP4mo ago
with the foreach loop ?
Angius
Angius4mo ago
Not gonna work well for a 2D array Nested for loops
Ankyrex
AnkyrexOP4mo ago
alr ty I will try

Did you find this page helpful?