So it is MANY years later. Are you still unsure about releasing the source? I just asked my 5 year old daughter to come up with a problem that we can solve by writing a computer program. She brought me a Rubicks cube and said "this!! lets write a program that puts this back!" So my skills aren't nearly good enough to solve that with Lazarus at this point! Some day I hope... either way I would like to see if I can get her interested by using the source of a Rubicks Cube Solver. lol... she can't really even read much yet so this may be a challenge but my older daughter who can read is very creative and smart. So this may be the beginning of 2 genius programmers...
As a starting point you can try this french delphi project rubik's cube Creative Commons LicenceTo Do : 1 - Convert to Lazarus --> seems to be OK no error , can be execute2 - Translate to your language3 - Correct the solver -> Solver OK in Delphi 7 not OK in Lazarus ( Error )4 - Optimize the Solver5 - Optimize the 3D rendererhave funFriendly, J.P
HiI think there is an error in line 708 of URubik:as:Code: Pascal [Select][+][-]const QuoiFaire2: array[1..12, 1..4] of integer = ((1234, 0, 0, 0), (1342, 2, 2, 2), (1423, 1, 2, 0), (2143, 2, 4, 1), (2314, 2, 3, 3), (2431, 2, 4, 4), (3124, 1, 3, 0), (3241, 2, 1, 1), (3412, 2, 4, 3), (4132, 1, 4, 0), (4213, 1, 1, 0), (4321, 2, 3, 4)); Code: Pascal [Select][+][-] for i := 1 to 24 do if QuoiFaire2[i, 1] = c1 * 1000 + c2 * 100 + c3 * 10 + c4 then n := i; Shoud be:Code: Pascal [Select][+][-] for i := 1 to 12 do if QuoiFaire2[i, 1] = c1 * 1000 + c2 * 100 + c3 * 10 + c4 then n := i; or am I wrong?B->