aspose file tools*
The moose likes Programming Diversions and the fly likes Sudoku + Rubik's cube Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Sudoku + Rubik Watch "Sudoku + Rubik New topic
Author

Sudoku + Rubik's cube

Sharmi Ragoth
Ranch Hand

Joined: Apr 12, 2006
Posts: 31
Has anybody given this a try yet?
Arjunkumar Shastry
Ranch Hand

Joined: Feb 28, 2005
Posts: 986
Sudoku is 9x9 flat square and Rubik cube is 3x3.How will your new toy look like?


Namma Suvarna Karnataka
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41524
    
  53
Yes.


Ping & DNS - my free Android networking tools app
Sharmi Ragoth
Ranch Hand

Joined: Apr 12, 2006
Posts: 31
It will look like this

I am finding it impossibly difficult.
Ryan McGuire
Ranch Hand

Joined: Feb 18, 2005
Posts: 1007
    
    3
I'd love to get my hands on one of those! When it's solved, is each face specifically...
1 2 3
4 5 6
7 8 9

It could be either easy or hard depending on how the various faces are oriented with respect to each other. For instance, if there are two corner cubes that have three '1's, then it would hard to know which one goes where.

I'm sure there are generic Rubik's Cube programs out there that let you plug in your own pictures to map onto the faces. If not, then someone should write one. ...perhaps in Java? All you would need is an image of a 1-9 square of numbers. to paste onto each virtual side.
Ryan McGuire
Ranch Hand

Joined: Feb 18, 2005
Posts: 1007
    
    3
I picked up one of these bad boys for cheap at the local drug store.

The digits are arranged as follows:

That diagram even shows how the digits are oriented.

This means that on any corner piece, two of the digits will have the same up vector and the third will be at a right angle to the first two. If the third digit on a corner piece is on top, the piece belong to the "Top" layer. Conversely, if the third digit is at the bottom of the other two, the corner piece must be from the "Bottom" layer.

A similar analysis can be for half of the edge pieces.

That amount of analysis should get you all started.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sudoku + Rubik's cube