Windows 10: Sudoku problem

Discus and support Sudoku problem in Windows 10 Installation and Upgrade to solve the problem; Sudoku problem, not updating https://answers.microsoft.com/en-us/windows/forum/all/sudoku-problem/be2a4d1c-395b-46be-b723-e3d5c9ed5a57 Discussion in 'Windows 10 Installation and Upgrade' started by CameronDiaz1, Nov 19, 2020.

  1. Sudoku problem


    Sudoku problem, not updating

    :)
     
    CameronDiaz1, Nov 19, 2020
    #1
  2. GSquadron Win User

    Java sudoku

    A friend of mine gave me a java sudoku ready, i just modified the main part but looks like it
    doesn't show up anything (used the code in neatbeans and in eclipse too):
    Code: package javaapplication2; import java.util.*; public class Main { public static void main(String args[]){} Random generator = new Random(); int[] serie = new int[9]; int[][] sudoku = new int[9][9]; int[][] select = new int[9][9]; int livello; public Main(int livello) { this.livello = livello; for (int i=0; i<9; i++) { for (int j=0; j<9; j++) { select[j] = -1; } } for (int i=0; i<9; i++) { for (int j=0; j<9; j++) { sudoku[j] = -1; } } for (int i=0; i<9; i++) { serie = -1; } } private void genArray() { int numCas = Math.abs(generator.nextInt(9))+1; for (int i=0; i<9;i++) { if (i==0) { serie = numCas; } else { while (serie[0] == numCas || serie[1] == numCas || serie[2] == numCas || serie[3] == numCas || serie[3] == numCas || serie[4] == numCas || serie[5] == numCas || serie[6] == numCas || serie[7] == numCas || serie[8] == numCas) { numCas = Math.abs(generator.nextInt(9))+1; } serie = numCas; } } } private void generateSudoku() { for (int i=0; i<9; i++) { if (i==0) { for (int k=0; k<9; k++) { sudoku[k] = serie[k]; } } else if (i==2) { for (int k=0; k<6; k++) { sudoku[k+3] = serie[k]; } for (int k=0; k<3; k++) { sudoku[k] = serie[k+6]; } } else if (i==1) { for (int k=0; k<3; k++) { sudoku[k+6] = serie[k]; } for (int k=0; k<6; k++) { sudoku[k] = serie[k+3]; } } else if (i==3) { for (int k=0; k<8; k++) { sudoku[k+1] = serie[k]; } for (int k=0; k<1; k++) { sudoku[k] = serie[k+8]; } } else if (i==5) { for (int k=0; k<5; k++) { sudoku[k+4] = serie[k]; } for (int k=0; k<4; k++) { sudoku[k] = serie[k+5]; } } else if (i==4) { for (int k=0; k<2; k++) { sudoku[k+7] = serie[k]; } for (int k=0; k<7; k++) { sudoku[k] = serie[k+2]; } } else if (i==6) { for (int k=0; k<7; k++) { sudoku[k+2] = serie[k]; } for (int k=0; k<2; k++) { sudoku[k] = serie[k+7]; } } else if (i==8) { for (int k=0; k<4; k++) { sudoku[k+5] = serie[k]; } for (int k=0; k<5; k++) { sudoku[k] = serie[k+4]; } } else if (i==7) { for (int k=0; k<1; k++) { sudoku[i][k+8] = serie[k]; } for (int k=0; k<8; k++) { sudoku[i][k] = serie[k+1]; } } } for (int i=0; i<9; i++) { for (int j=0; j<9; j++) { System.out.print(sudoku[i][j] + " "); } System.out.println(""); } arrange(); for (int i=0; i<9; i++) { for (int j=0; j<9; j++) { System.out.print(sudoku[i][j] + " "); } System.out.println(""); } } private void arrange() { int cas = Math.abs(generator.nextInt(3)); for (int i=0; i<9; i++) { if (cas == 0) { if (i == 0) { swap0(i); } else if (i == 3) { swap0(i); } else if (i == 6) { swap0(i); } } else if (cas == 1) { if (i == 0) { swap1(i); } else if (i == 3) { swap1(i); } else if (i == 6) { swap1(i); } } else if (cas == 2) { if (i == 0) { swap2(i); } else if (i == 3) { swap2(i); } else if (i == 6) { swap2(i); } } cas = Math.abs(generator.nextInt(3)); } } private void swap0(int pivot) { int aux; for (int j=0; j<9; j++) { aux = sudoku[pivot][j]; sudoku[pivot][j] = sudoku[pivot+1][j]; sudoku[pivot+1][j] = aux; aux = sudoku[pivot+1][j]; sudoku[pivot+1][j] = sudoku[pivot+2][j]; sudoku[pivot+2][j] = aux; } for (int j=0; j<9; j++) { aux = sudoku[j][pivot]; sudoku[j][pivot] = sudoku[j][pivot+2]; sudoku[j][pivot+2] = aux; } } private void swap1(int pivot) { int aux; for (int j=0; j<9; j++) { aux = sudoku[pivot][j]; sudoku[pivot][j] = sudoku[pivot+2][j]; sudoku[pivot+2][j] = aux; aux = sudoku[pivot+1][j]; sudoku[pivot+1][j] = sudoku[pivot+2][j]; sudoku[pivot+2][j] = aux; } for (int j=0; j<9; j++) { aux = sudoku[j][pivot]; sudoku[j][pivot] = sudoku[j][pivot+1]; sudoku[j][pivot+1] = aux; aux = sudoku[j][pivot+1]; sudoku[j][pivot+1] = sudoku[j][pivot+2]; sudoku[j][pivot+2] = aux; } } private void swap2(int pivot) { int aux; for (int j=0; j<9; j++) { aux = sudoku[pivot][j]; sudoku[pivot][j] = sudoku[pivot+2][j]; sudoku[pivot+2][j] = aux; } for (int j=0; j<9; j++) { aux = sudoku[j][pivot]; sudoku[j][pivot] = sudoku[j][pivot+2]; sudoku[j][pivot+2] = aux; aux = sudoku[j][pivot+1]; sudoku[j][pivot+1] = sudoku[j][pivot+2]; sudoku[j][pivot+2] = aux; } } public void select() { int numX; int numY; genArray(); generateSudoku(); if (livello == 0) { for (int i=0; i<30; i++) { numX = Math.abs(generator.nextInt(9)); numY = Math.abs(generator.nextInt(9)); while (select[numX][numY] != -1) { numX = Math.abs(generator.nextInt(9)); numY = Math.abs(generator.nextInt(9)); } select[numX][numY] = sudoku[numX][numY]; } } else if (livello == 1) { for (int i=0; i<20; i++) { numX = Math.abs(generator.nextInt(9)); numY = Math.abs(generator.nextInt(9)); while (select[numX][numY] != -1) { numX = Math.abs(generator.nextInt(9)); numY = Math.abs(generator.nextInt(9)); } select[numX][numY] = sudoku[numX][numY]; } } else if (livello == 2) { for (int i=0; i<10; i++) { numX = Math.abs(generator.nextInt(9)); numY = Math.abs(generator.nextInt(9)); while (select[numX][numY] != -1) { numX = Math.abs(generator.nextInt(9)); numY = Math.abs(generator.nextInt(9)); } select[numX][numY] = sudoku[numX][numY]; } } try { notifyAll(); } catch (Exception e) { } for (int i=0; i<9; i++) { for (int j=0; j<9; j++) { System.out.print(sudoku[i][j] + " "); } System.out.println(""); } } }[/quote] Where the problem is here? It compiles perfectly! Nothing shows on the screen *Confused Sudoku problem :confused:[/i][/i][/i][/i][/i]
     
    GSquadron, Nov 19, 2020
    #2
  3. Sudoku Crashes

    It was only an issue with Sudoku. It started on 6/23/18. I went to the troubleshooter link and the first step took care of the problem:

    • Update Microsoft Store: Select the Start button > Microsoft Store . Select See more > Downloads and updates > Get updates.
      If an update for Microsoft Store is available, it will start installing automatically.
     
    TedMichalik, Nov 19, 2020
    #3
  4. Sudoku problem

    Microsoft Sudoku app problem.

    Hi Norsk,



    Thank you for posting in Microsoft Community.

    I regret the inconvenience caused to you. Let me help you.




    • Do you see any error code or error message on the screen?
    I suggest you to perform the below methods and check if it helps.



    Make sure the Windows is up to date.

    Please check your Windows updates (including optional updates).



    • At the Start screen, type Windows Update.
    • Select Check for Update.
    • Download and Install the latest Windows Updates.


    You can uninstall and reinstall Sudoku and check if you get the options remove the ads.

    To uninstall:


    • Press Windows Key on the keyboard

    • Type Sudoku

    • Right click on the app and uninstall.

      Install it back from Windows Store.

      Check if it helps.



      I hope the information helps. If you have any further queries, please feel free to contact us again. We will be happy to assist you.



      Thank you.
     
    Aswin_Anand, Nov 19, 2020
    #4
Thema:

Sudoku problem

Loading...
  1. Sudoku problem - Similar Threads - Sudoku problem

  2. Microsoft Sudoku is having sign in problems again?

    in Windows 10 Gaming
    Microsoft Sudoku is having sign in problems again?: I take it Sudoku is having sign in problems again. Any ideas on how to fix it? https://answers.microsoft.com/en-us/windows/forum/all/microsoft-sudoku-is-having-sign-in-problems-again/36dcde8e-147f-4ce4-ac80-95ebc742ba03
  3. Microsoft Sudoku is having sign in problems again?

    in Windows 10 Software and Apps
    Microsoft Sudoku is having sign in problems again?: I take it Sudoku is having sign in problems again. Any ideas on how to fix it? https://answers.microsoft.com/en-us/windows/forum/all/microsoft-sudoku-is-having-sign-in-problems-again/36dcde8e-147f-4ce4-ac80-95ebc742ba03
  4. Microsoft Sudoku Problem with sign in

    in Windows 10 Gaming
    Microsoft Sudoku Problem with sign in: I can't sign into Microsoft Sudoku. When I try, it flashes the Xbox sign-in splash screen and immediately goes back to the Sudoku games screen. Everything worked well until a few days ago....
  5. Microsoft Sudoku Problem with sign in

    in Windows 10 Software and Apps
    Microsoft Sudoku Problem with sign in: I can't sign into Microsoft Sudoku. When I try, it flashes the Xbox sign-in splash screen and immediately goes back to the Sudoku games screen. Everything worked well until a few days ago....
  6. Is there a problem with Microsoft Sudoku?

    in Windows 10 Gaming
    Is there a problem with Microsoft Sudoku?: Microsoft Sudoku is stating I need a score of 999,999,999 to achieve diamond level. I tried on several PC's, uninstalled and reinstalled program, repaired and reset it, also with no luck. Unable to insert a screenshot....
  7. Is there a problem with Microsoft Sudoku?

    in Windows 10 Software and Apps
    Is there a problem with Microsoft Sudoku?: Microsoft Sudoku is stating I need a score of 999,999,999 to achieve diamond level. I tried on several PC's, uninstalled and reinstalled program, repaired and reset it, also with no luck. Unable to insert a screenshot....
  8. Microsoft sudoku and jigsaws daily challenge. freeze problem. on the free games.

    in Windows 10 Gaming
    Microsoft sudoku and jigsaws daily challenge. freeze problem. on the free games.: When running the free version of these games, an Advert called "Slots Era" runs. On completion, when the close button appears, the advert crashes and the screen freezes. This applies to all the "Free games" I, and my wife have run on our laptops. On our paid games, this is...
  9. Uninstall problems w/ Minesweeper and Sudoku

    in Windows 10 Gaming
    Uninstall problems w/ Minesweeper and Sudoku: Hello, I am having trouble with Minesweeper and Sudoku (i still have Mahjong and the Solitaire collection that work however ... ) neither of them work, nor can i uninstall them, it comes up with the message: The operation did not complete successfully. Try again in a...
  10. Microsoft Sudoku and Jigsaw problems with opening the games

    in Windows 10 Customization
    Microsoft Sudoku and Jigsaw problems with opening the games: Hello there, I'am trying for hours to get into Microsoft Sudoku but it's loading while the screen stays blue but nothing is happening. So I can not do my daily challenges. This is also by Microsoft Jigsaw the same problem. What is going there ?????? Pls fix this asap...