❔ Most of the code in class throws error when working before.
Hello, I'm making a simple minesweeper game in the console using OOP. I created a class for the grid to be able to manage the grid for the minesweeper. I was building the code without any issues before, i added a new method and then when I try to build it now the code doesn't seem to work at all and throws an error on almost every line of code.
7 Replies
The errors that come up
Methods need parens
public void printBombGrid
Should be public void printBombGrid()
printBombGrid
Or, to be precise, should be
public void PrintBombGrid()
if you were to stick to C# naming conventions
The error would be easier to spot if you formatted your code properly, toogenerally when all your code starts showing compiler errors you made a syntax error near the top of where they start
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.