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
$details
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)
We do not help with entire projects
"field with a key and a door" is not really a concept universal to C#
So you'll have to share some more details
I just want to make a board or field with 2D array but im not sure how to do it
Which part?
so that the console shows the 10x10 field
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 rowwith the foreach loop ?
Not gonna work well for a 2D array
Nested
for
loopsalr ty
I will try