271 reputation
139
bio website
location France
age 20
visits member for 3 years
seen Sep 4 at 9:09

Aug
10
awarded  Famous Question
Nov
4
awarded  Nice Question
Jul
16
awarded  Notable Question
Dec
28
awarded  Notable Question
Oct
21
awarded  Popular Question
Aug
29
awarded  Yearling
Jul
18
awarded  Popular Question
May
12
awarded  Teacher
May
12
answered Has test driven development (TDD) actually benefited a real world project?
May
10
accepted Backtracking with Killer Sudoku
May
10
comment Backtracking with Killer Sudoku
It was a small error in the grid... My mistake. Thank you for all your help !
May
9
comment Backtracking with Killer Sudoku
It works but for a very hard grid, the solution found was incorrect (10 in a cell) so I added this constraint to the valid? method and now it says that the grid has no solution while there's one.
May
7
comment Backtracking with Killer Sudoku
I did the loop in the true code I tried in fact... Forgot it in the main post. The problem here is to undo all the changes, I think I must clone sudoku2 and copy it to sudoku only if a solution is found and then it should be good. I'll try to code it again hoping it won't do anything wrong... But I don't think my mistake's here because I tried various ways to backtrack.
May
7
revised Backtracking with Killer Sudoku
added 59 characters in body
May
7
awarded  Commentator
May
7
comment Testing an IRC Bot
What do you mean by "built to an interface" ?
May
7
comment Backtracking with Killer Sudoku
The whole "addition" info is available in the sudoku object so that is not really a problem I think. My strategies already remove many possibilities using the other cells including all this checking, that's why I wanted a way to use them without modifying the whole grid, but still getting the solution after. I don't expect an answer as ruby but even as pseudo-code would be nice, just to see the backbone of what I should do.
May
7
revised Backtracking with Killer Sudoku
added 82 characters in body
May
7
comment Backtracking with Killer Sudoku
It takes the grid and try to remove possibilities and find solutions using logic. For example, looking for uniq numbers in a row.
May
7
asked Backtracking with Killer Sudoku