Hi, I'm new and wondering if anyone would be willing to explain to me how I can automate the acquisition and submission of the data (board) and solution. I read the sticky on automation, so I know the format of submitting a solution, I just don't know how to code it. I'd prefer to code in c++, but I suppose java would be okay, too.
Thanks,
-Muffinator
Starting Automation
-
- Posts: 2
- Joined: Sat Mar 29, 2008 4:04 pm
Okay, thanks!
Also, I tried compiling your sample script in bluej, and it's giving me this error "n must be positive" in the line that calls the randomizer function (line 63). I figured that somehow you were passing a negative number in, so I put Math.abs(boardX) and the same for boardY, but that still didn't work. Any clue as to what's up?
Also, I tried compiling your sample script in bluej, and it's giving me this error "n must be positive" in the line that calls the randomizer function (line 63). I figured that somehow you were passing a negative number in, so I put Math.abs(boardX) and the same for boardY, but that still didn't work. Any clue as to what's up?
Code: Select all
java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Random.java:250)
at MortalCoilSolver.findSolutionPath(MortalCoilSolver.java:63)
at MortalCoilSolver.solve(MortalCoilSolver.java:48)
-
- Posts: 5
- Joined: Sat May 17, 2008 9:38 pm
I had the same problem when I looked at this puzzle, but solved the problem really quickly.
The trick that for some reason , the spaces in the website, have replaced by tabs.
So to make it work, you should replace the string " <param name..." with "\t\t\t<param name..."
but this is easy to find if you know from programming
hope I helped
edit: oups, it's 3 tabs/spaces, not 4 :p
The trick that for some reason , the spaces in the website, have replaced by tabs.
So to make it work, you should replace the string " <param name..." with "\t\t\t<param name..."
but this is easy to find if you know from programming
hope I helped
edit: oups, it's 3 tabs/spaces, not 4 :p