Results 1 to 1 of 1
  1. #1
    monkeyjr97 is offline Senior Member
    Join Date
    Nov 2012
    Rep Power

    Default Strange bug i cannot figure it out!

    Hey im doing a sodoku game. I can solve the puzzles easily enough and i am using a GUI to do so:

    my GUI consists of a solve and an load file button.

    The issue i have is that when i load a file a click solve it will solve the board fine and dandy! but when i load a file again, even if its the same file it wont solve the puzzle.

    i am resetting the board when i load in another file, cannot figure out this issue.

    The code is quite long and i tried running a shortened example but the problem didnt persist.

    Would it be possible for someone to team view me? or i can send a copy of the zip code to them and see if they can find the bug and point me in the right direction?

    I am not asking for you to fix my code, just asking if anybody can identify the problem and lead me the right way

    First load and run through

    Strange bug i cannot figure it out!-first.png

    Second load and run through, of the same file notice it does not solve NOTICE THE TOP LEFT CORNER CELL[0][1] AND [1][1] ARE BOTH 1

    Strange bug i cannot figure it out!-untitled.png

    my 2d array is of JLabels and this is how i reset it on load
    Last edited by monkeyjr97; 10-19-2013 at 04:14 PM.

Similar Threads

  1. Getting a very strange output..
    By jubbiejub in forum New To Java
    Replies: 4
    Last Post: 04-06-2012, 05:12 AM
  2. Replies: 1
    Last Post: 08-26-2011, 08:01 AM
  3. Very strange structure
    By atch in forum New To Java
    Replies: 1
    Last Post: 02-10-2010, 12:48 PM
  4. strange code
    By tghn2b in forum New To Java
    Replies: 3
    Last Post: 12-23-2008, 12:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts