If you would like to test your programs I believe this will be the best way. Instead of submitting and then wondering why your solution is wrong. This gives output in the correct manner and also shows how each command affects the blocks.
Here is a sample output:
You can just place this executable in your directory where your program resides and run it once to give you a random command input file named "p101.in" and then it will give you the output file "p101.out" as the answer. So all you have to do is read from the input file and then compare your output to that of output file. Once you get your program to get the same the same answer as in the output file, then you can run the executable again to give you another random input file..
.
.
pile 0 over 18
0:
1: 1
2: 2
3: 3
4: 4
5: 5
6: 6
7: 7
8: 8
9: 9
10: 10
11: 11
12: 12
13: 13
14: 14
15: 15
16: 16
17: 17
18: 18 0
19: 19
20: 20
21: 21
22: 22
23: 23
24: 24
move 2 onto 15
0:
1: 1
2:
3: 3
4: 4
5: 5
6: 6
7: 7
8: 8
9: 9
10: 10
11: 11
12: 12
13: 13
14: 14
15: 15 2
16: 16
17: 17
18: 18 0
19: 19
20: 20
21: 21
22: 22
23: 23
24: 24
move 7 over 13
0:
1: 1
2:
3: 3
4: 4
5: 5
6: 6
7:
8: 8
9: 9
10: 10
11: 11
12: 12
13: 13 7
14: 14
15: 15 2
16: 16
17: 17
18: 18 0
19: 19
20: 20
21: 21
22: 22
23: 23
24: 24
.
.
.
Anywho, you can pick the executable up:
http://people.eecs.ku.edu/~rucker/valladolid/p101.exe
I don't have a whole bunch of time to do this sort of thing to all of the problems but I believe this is a good way to help find bugs. So if you would like to help the cause please drop me an email address or private message me.
Thank you