Me and my friend decided to start making games together in C#. The major issue is that what little we learned in programming 101 in High School have mostly been forgotten, in addition to the fact that we only ever got to program in Javascript.
Deciding to review our old programs we almost immediately ran into issues. We were made to make a game called Wompus, a simple text-based adventure consisting of a single map, a monster and gold. We made the map in Java using this code:
static char[][] cave = {
{'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X'},
{'X', 'O', 'O', 'X', 'O', 'O', 'X', 'O', 'M', 'X'},
{'X', 'O', 'X', 'X', 'O', 'O', 'O', 'O', 'O', 'X'},
{'X', 'O', 'X', 'O', 'O', 'O', 'O', 'O', 'X', 'X'},
{'X', 'O', 'O', 'O', 'O', 'O', 'X', 'X', 'X', 'X'},
{'X', 'O', 'O', 'O', 'X', 'O', 'O', 'O', 'X', 'X'},
{'X', 'O', 'O', 'X', 'X', 'X', 'O', 'O', 'O', 'X'},
{'X', 'O', 'O', 'X', 'O', 'O', 'O', 'O', 'X', 'X'},
{'X', 'O', 'O', 'O', 'O', 'O', 'O', 'O', 'X', 'X'},
{'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X'}};
With X representing a wall and O representing an empty space (M and G being Monster and Gold, respectively). However, when transferred into C# we get the error message: "Array initializers can only be used in a variable or field initializer."
This is our first time programming in just over a year and with a new language, so all but the most basic expressions are lost on us. Please help!