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