Search:

Type: Posts; User: beansnbacon

Search: Search took 0.08 seconds.

  1. Replies
    12
    Views
    4,245

    [SOLVED] Re: Minesweeper Recursion Method Help

    I have fixed another part of the problem. The mouse's x and y were used as the x and y in the clearBlockers method. So when I was detecting whether a neighboring cell had 0 mines, it would always be...
  2. Replies
    12
    Views
    4,245

    [SOLVED] Re: Minesweeper Recursion Method Help

    So far I found one error: In line 126 I said x+-40 instead of x-40. That didn't do anything to the code when I changed it, though.
  3. Replies
    12
    Views
    4,245

    [SOLVED] Re: Minesweeper Recursion Method Help

    I figured out part of my problem: in lines 116 and 117 I forgot to divide the number by 40, so it was requesting a number that was out of the boundaries of an the blockers array. But now I have a...
  4. Replies
    12
    Views
    4,245

    [SOLVED] Re: Minesweeper Recursion Method Help

    This is what is said one time after I launched this game and the first click was a blank cell:

    Exception in thread "AWT-EventQueue-1" java.lang.ArrayIndexOutOfBoundsException: 1951
    at...
  5. Replies
    12
    Views
    4,245

    [SOLVED] Re: Minesweeper Recursion Method Help

    They're not needed for me, but for viewers on this forum who may wonder what all the variables and methods I created stand for. I also code by myself, so the only other people working with my code...
  6. Replies
    12
    Views
    4,245

    [SOLVED] Re: Minesweeper Recursion Method Help

    To me, comments seem to waste space in the code and it is annoying for me when it's simple enough for me to understand it without comments. The information that might normally go into a comment, I...
  7. Replies
    12
    Views
    4,245

    [SOLVED] Minesweeper Recursion Method Help

    I am trying to make a java minesweeper game. As you may know, if an empty cell is revealed in minesweeper, it reveals its surrounding cells. I believe making a recursive method should allow this...
Results 1 to 7 of 7