C
C#3mo 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
Buddy3mo ago
$details
MODiX
MODiX3mo 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
Buddy3mo ago
We do not help with entire projects
Angius
Angius3mo 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
AnkyrexOP3mo ago
I just want to make a board or field with 2D array but im not sure how to do it
Angius
Angius3mo ago
Which part?
Ankyrex
AnkyrexOP3mo ago
so that the console shows the 10x10 field
Angius
Angius3mo 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
AnkyrexOP3mo ago
with the foreach loop ?
Angius
Angius3mo ago
Not gonna work well for a 2D array Nested for loops
Ankyrex
AnkyrexOP3mo ago
alr ty I will try
Want results from more Discord servers?
Add your server