Lazarus

Announcements => Third party => Topic started by: circular on June 11, 2012, 07:09:50 pm

Title: Rubik's cube F2L solver
Post by: circular on June 11, 2012, 07:09:50 pm
Here is my lastest program. It is a Rubik's cube program that solves the first two layers using the F2L method.

You can turn the cube in 3D and move faces using F(ront), U(p), L(eft), B(ack), D(own), R(ight), with Shift and Alt. Also you can use M, E, S for slice moves, and x,y,z to rotate the cube with the keyboard.

It can be downloaded here :
http://consume.o2switch.net/rubik_f2l.zip

Here is a screenshot :
Title: Re: Rubik's cube F2L solver
Post by: JuhaManninen on June 11, 2012, 10:12:26 pm
http://consume.o2switch.net/rubik_f2l.zip

Only a Windows executable?

Juha
Title: Re: Rubik's cube F2L solver
Post by: circular on June 12, 2012, 04:40:26 pm
For now, yes. Of course I could put the sourcecode somewhere.
Title: Re: Rubik's cube F2L solver
Post by: typo on June 12, 2012, 04:46:22 pm
And maybe send it to this:

http://www.lazarusbrasil.org/contest.php
Title: Re: Rubik's cube F2L solver
Post by: circular on June 12, 2012, 04:51:09 pm
Ok, I've sent it.

By the way, I want to thank Dibo and Lainz for BGRAControls, which I am using in this project.  :)
Title: Re: Rubik's cube F2L solver
Post by: lainz on June 12, 2012, 08:45:29 pm
nice  :)
Title: Re: Rubik's cube F2L solver
Post by: fabienwang on June 12, 2012, 11:00:12 pm
awesome.

Congrats Circular.

Now i understand why you watched so many rubik's cube videos on youtube ^^
Title: Re: Rubik's cube F2L solver
Post by: circular on June 13, 2012, 12:32:07 am
Thanks.

I've updated the program with new features like OLL search and configuration.
Title: Re: Rubik's cube F2L solver
Post by: cocce on October 15, 2012, 12:26:32 pm
Very good job.

A question: Is it possibile to see/receive the source code?

Regards
Thanks.

I've updated the program with new features like OLL search and configuration.
Title: Re: Rubik's cube F2L solver
Post by: circular on October 20, 2012, 01:01:14 pm
I'm not sure about releasing the source code for now.
Title: Re: Rubik's cube F2L solver
Post by: User137 on October 20, 2012, 03:29:57 pm
I can give source to my old rubik's cube (attached)  :D  It was made back in 2006 for Delphi and doesn't know how to solve it automatically. But you are able to roll it with using just mouse.
- Mousewheel switches between 3 rotation modes (X, Y and Z rolling). (Also any key on keyboard does this too).
- Drag with left mousebutton to rotate 1 row.
- Drag with right mousebutton to rotate whole cube freely in 3D space (this is a rotation matrix implementation with OpenGL).

Uploaded win32 binary to google drive:
https://docs.google.com/open?id=0B7FII3MhcAHJa0otWjU1VE9kRTQ

And if you want to compile it, it used my old GLEngine which isn't available in public. Shouldn't be too hard to convert it to use the new nxPascal to make it run on Lazarus quite easily, if people want it.
Title: Re: Rubik's cube F2L solver
Post by: Tony Stone on June 26, 2021, 03:12:48 am
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...
Title: Re: Rubik's cube F2L solver
Post by: circular on June 26, 2021, 04:09:58 am
I think I lost the sources, so unfortunately I can't share it anymore.
Title: Re: Rubik's cube F2L solver
Post by: Tony Stone on July 02, 2021, 09:38:48 pm
I think I lost the sources, so unfortunately I can't share it anymore.
Well that is sad. lol
Title: Re: Rubik's cube F2L solver
Post by: MarkMLl on July 02, 2021, 10:00:03 pm
https://github.com/hkociemba/CubeExplorer might be worth a gander.

MarkMLl

Title: Re: Rubik's cube F2L solver
Post by: CM630 on August 02, 2021, 04:52:13 pm
IMHO it would be nicer if there was some sound. I have an original Rubiks cube from the old times - it is noisy indeed and it's a part of the whole thing.
Title: Re: Rubik's cube F2L solver
Post by: Jurassic Pork on August 03, 2021, 08:01:26 am
hello,
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 (https://codes-sources.commentcamarche.net/source/53132-rubik-s-cube)  Creative Commons Licence
To Do :
1 - Convert to Lazarus --> seems to be OK no error , can be execute
2 - Translate to your language
3 - Correct the solver -> Solver OK in Delphi 7 not OK in Lazarus ( Error )
4 - Optimize the Solver
5 - Optimize the 3D renderer

have fun

Friendly, J.P
TinyPortal © 2005-2018