Ken-Soft

Software and the World

Rubik’s Cube - 2D Implementation - Java

Posted under Game Development, Java, Logic Problems, Programming, Rubik's Cube, Software Development by Kenny on Thursday 25 December 2008 at 11:43 pm
Bookmark and Share

This is a simple 2D representation of a Rubik’s Cube written in Java. Its main purpose to be easily integrated with other software. I.e. A Rubik’s Cube solving Neural Network. Therefore, the UI is not extremely eye catching. But it serves a good test to demonstrate that the software is working. Later implementations will better support NxNxN cubes.

The Jar file can be downloaded here: Rubik’s Cube.jar Just click it to run it. If you have any problems running it, check to ensure that Java is correctly installed on your machine.

Rubik's Cube 2D java Rubik's Cube 2D java

RubiksCubeGUI.java

RubiksCube.java is the main wrapper class to Cube3D

RubiksCube.java

Cube3D.java

Each of the 27 cubes that make up a standard 3×3 Rubik’s Cube, I call a Cubit.

Cubit.java

Cube3DTest.java


4 Comments »

  1. Comment by Deesquecherse — February 7, 2009 @ 3:39 am

    yo, ken-soft.com great name for site)))
    ————————
    sponsor: http://qugor.ru

  2. Comment by swobArrerie — February 7, 2009 @ 6:20 am

    ken-soft.com - now in my rss reader)))
    ————————
    signature: http://youraudiovox.com/music54/map.html

  3. Comment by terperceity — February 10, 2009 @ 5:51 am

    Hello, I can’t understand how to add your blog ( ken-soft.com ) in my rss reader
    ————————
    sponsored link: http://lilid.ru/

  4. Comment by terperceity — February 10, 2009 @ 7:25 am

    ken-soft.com - now in my rss reader)))
    ————————
    sponsored link: http://lilid.ru/

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Copyright © 2009 www.Ken-Soft.com