Questions tagged [sudoku]
Sudoku (soo-doh-koo) is a number-placement logic puzzle. The objective is to fill a partially constructed 9×9 grid with digits so that each column, each row, and each of the nine 3×3 sub-grids that compose the grid contain all of the digits from 1 to 9.
sudoku
1,210
questions
0
votes
0
answers
55
views
Python Sudoku Solver: Appling Rules and Breaking Infinite Loops
I am writing sudoku solver python code. But I cannot find problem.
Python cannot finish the code. I do not know what happening but it is like python enters infinite loop. This loop usually affect a ...
1
vote
1
answer
58
views
Insert function for a matrix in OCaml is not working
class virtual ['a] matrix_game m pf =
object
val matrix : 'a array array = m
val rows = Array.length m
val cols = Array.length m.(0)
val print_function : 'a -> unit = pf
...
0
votes
1
answer
54
views
Problem with a State variable that is struct
I am making Sudoku for iOS that will be simple project for my classes. The problem is the checking of the Sudoku. There can be three results form the checked Sudoku:
Not filled
Correct
Incorect
...
2
votes
1
answer
36
views
Two-dimensions array 9x9 of integers without using numpy.array (subclassing MutableSequence)
Few days ago I found the next example of howto implement customs list classes via subclassing the MutableSequence from collections.abc.
class TypedList(MutableSequence):
def __init__(self, ...
0
votes
1
answer
43
views
Sudoku generator takes way too long to remove the tiles
I am trying to generate a sudoku board base on a difficulty. I'm basing everything on the fact that I dont care if it has one or multiple solutions. Generation a full board is ok, its fast, but when ...
0
votes
1
answer
64
views
Program runs indefinitely when I check hash map for repetition in rows/columns
I'm writing a Sudoku board generator. I thought of using a hash map to make sure that numbers are not repeated in the same row/column. The key is a string ("row"/"col" + number of ...
0
votes
0
answers
64
views
How to make a decision tree for a 4x4 sudoku game in c?
I am trying to build a sudoku game in c, I dont need it to solve the sudoku, but for the user to input the first couple numbers and then choose the moves he wants, however the moves need to be in a ...
0
votes
0
answers
26
views
Flutter Sudoku App From Loadstate Userfilled numbers is been displayed but not updated in the table cell
"When loading user-filled numbers into my Sudoku table using SharedPreferences, the issue arises where the number is displayed in the cell from the loaded state, but it is not updated within the ...
0
votes
0
answers
31
views
Flutter from Loadstate the number is being displayed but not updated in the cell
So from the loadUserFillenumber using sharedpreference Im getting the userfilled number, and displaying in the sudoku table and cell, but its onlying displaying the userfillednumber from loadstate ...
-1
votes
1
answer
58
views
There is a segmentation fault but I can't see any problem in infinite loops, problems with memory access etc
I wanted to make a program that will generate sudoku 9x9 with brute force and a fixed array of numbers form 1-9. There seems to be segmentation error when shuffling the array randomly and I can't seem ...
0
votes
0
answers
82
views
Problem with showing the sudoku in the front-end written in swift ui
I made a simple sudoku game in swift for IOS the problem is that I made that the generated number will be bold so the user will see that he cant change them and that they are the generated number. To ...
0
votes
1
answer
71
views
Cannot open my QML MessageDialog using my C++ signal
I have a sudoku grid, and I want to validate it so that a number cannot be entered in the same row and column. If this happens, I want the message dialog box to open.
I have the function verif_complet ...
0
votes
1
answer
66
views
MessageDialog is not showing when I validate a condition in a qml TableView
I have a TableView that has a Sudoku grid in it. I wanted to validate it so that a number cannot be placed in the same row or column using a c++ functions. When the user enters an invalid number it ...
0
votes
1
answer
120
views
Program to check is a sudoku board correct?
I hope someone can help me understand what I am doing wrong.
this is the instruction I got:
Instructions: [code need to be in C]
In this exercise, I was required to write a program that checks the ...
1
vote
1
answer
53
views
C++ Run-Time Check Failure #2 Error in Sudoku Generator
i wrote a code which has loops for creating sudoku table
after each problem loop starts again and that causes for so much tries
it works fine but at the end i got an error
int TableGenerator() {
...