❔ New to C# and am trying to make a Minesweeper console app

I am having trouble with my "UpdateBoard" method and I can not seem to figure out what the problem is, can someone please help me? Here is the code:
8 Replies
Jimmacle
Jimmacle16mo ago
what is the problem and what have you tried?
redBox || !redBox
if the user selects a mine it still updates the board like they haven't, I have tried commenting out the OverrideBoard method because I thought that was the issue, and it was still doing the same thing
Jimmacle
Jimmacle16mo ago
without comments it's pretty difficult for someone here to understand what your code is supposed to do
redBox || !redBox
ill add some comments and resend it
Jimmacle
Jimmacle16mo ago
also fwiw, i have never seen a code style where method parameters were named with leading underscores that's typically used for instance fields of a class/struct
redBox || !redBox
I did that to help me better understand which were from the whole project and from the individual methods alright, I have added comments heres the updated code
Accord
Accord16mo ago
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.
Want results from more Discord servers?
Add your server
More Posts
❔ System.Data.OleDb.OleDbException: 'Could not find installable ISAM.' errorHi anyone can help me? i start the test and i got System.Data.OleDb.OleDbException: 'Could not find ❔ Accounting for Daylight Savings Time skips at runtimeMy Discord bot I am developing has a reminder system which utilizes <https://github.com/robbell/nChr✅ I need to put an invalid choice in my programI need to make the program repeat if they did not input a valid response of yes or no❔ My project runs successfully but doesn't load ( works fine when I run it without debugging )my project was working fine but suddenly whenever I run it it keeps loading without showing anythingOnly assignment, call, increment, decrement, await, and new object expressions can be used as a statim a noob and why cant i make my console make a beep sound? I didnt understand the error msg❔ multiple Async responsesSo im trying to use async for the first time, i am making a few api requests one after the other, thInvoke Event on boolean set in systemclassI have my own TcpClient class that inherits TcpClient and I wanna invoke an event when one of the bo❔ How to properly handle exceptions between API controller and service layer?I'm creating an API and I'm having trouble figuring out how to properly catch errors between my serv❔ Question regarding Pipe[Reader/Writer].Complete(Exception) (System.IO.Pipelines)If you put in an exception, where does it come back out exactly? Where does the exception get handle❔ How would I call a method created as a top level statement outside of the initial file?I have Program.cs with a method that is a static int, ```static int Example()``` and have tried to c