Oh my God :O I'm speechless... You dont know how much you helped me right now :D
I think I just had too less knowledge of all the commands in processing. I wrote a much longer program with hundreds of if and else commands..
But no I have the problem that i dont really understand what the program does.
I kind of get what the solve part does, and definitely get how the "legal" part works.
I'm almost embarrassed to say that but I dont understand how the boolean and return thing works..
Even if I try to understand the explanation on the processing Website i cant get it. (Maybe because my main language isnt English but I dont think so)
Can you explain to me what this part does?
- int[][] parseProblem(String[] args) {
- int[][] problem = new int[9][9]; // default 0 vals
- for (int n = 0; n < args.length; ++n) {
- int i = int(args[n].substring(0, 1));
- int j = int(args[n].substring(1, 2));
- int val = int(args[n].substring(2, 3));
- problem[i][j] = val;
- }
And give me another explanation how the boolean & return works?
If I get the this two things I'm pretty sure that I'll understand how the whole thing works :)
Thanks again for everything that you already did!