
did i get lucky?
i’m trying to create a sudoku solving program and the program thinks it found a “y-wing” logic rule with a 5-9 leg between the yellow and red circle and a 6-9 leg between the red and blue circle that concludes that the red circle must be a 9(i’m not sure the correct terms for this logic rule because it seems very obscure).
the problem is that depending on the order of the other checks my program makes to find solutions, the y-wing rule becomes invalid and the program stalls from not finding solutions, i cant tell if that means i designed the program wrong and it just got lucky with guessing the correct location for the 9 using incorrect logic, or if the other check is programmed wrong.(these are my two most temperamental checks lol, everything else is very reliable)