Questions tagged [rubiks-cube]

Rubik's Cube is a 3-D combination puzzle invented in 1974 by Hungarian sculptor and professor of architecture Ernő Rubik.

Rubik's Cube is a 3-D combination puzzle invented in 1974 by Hungarian sculptor and professor of architecture Ernő Rubik. Originally called the "Magic Cube", the puzzle was licensed by Rubik to be sold by Ideal Toy Corp. in 1980 via German businessman Tibor Laczi and Seven Towns founder Tom Kremer, and won the German Game of the Year special award for Best Puzzle that year.

Source: Wikipedia (Rubik's Cube)

128 questions
0
votes
2 answers

Model a Rubix Cube in an Array Java

Does anybody have any idea on how to model a rubix cube in an array? I can't seem to think of a way?
Andrew delgadillo
  • 714
  • 6
  • 13
  • 24
0
votes
4 answers

Undo/redo functionality with LinkedList implementation

I am writing my own 'Rubik's cube' application. The main class Cube has 18 rotation methods: RotateAxisXClockWise, RotateAxisXAntiClockWise RotateAxisYClockWise, RotateAxisYAntiClockWise RotateAxisZClockWise,…
sventevit
  • 4,766
  • 10
  • 57
  • 89
0
votes
3 answers

Python Comparing sequential items in a list and removing one if they are the same

This is an attempt a Rubik’s Cube scramble generator. I sometimes get turns of the same face one after the other for example (R,R'). I attempted to fix this using a for and while loop but it didn't work. import random def getscramble(): moves =…
St1gor
  • 3
  • 3
0
votes
1 answer

using cout to print an string array not working

I have this code, which is supposed to cout an string of an array, but it doesn't do anything :/ also, when I run the .exe file itself it gives some errors of not finding basic_string in the file. #include #include using…
0
votes
1 answer

Copying parts of a multidimensional array

I'm trying to create a Rubiks cube using 6, 2D arrays for each face of the cube. I'm able to spin the entire cube using this code but for some reason when I try and "turn" one vertical strip of the cube it does not work properly. Here is what I have…
Samantha Clark
  • 201
  • 2
  • 9
0
votes
1 answer

Random move javascript scrambler for the Rubik's Cube

I am currently working on a web-timer, and I have some issues with my scrambling-algorithm algorithm. As it is the first version, I only want the scrambler to be random move and not random state, as it is too much complicated to make, and it will…
Jakub Chaloupka
  • 177
  • 1
  • 3
  • 12
0
votes
1 answer

Rubik´Cube Scrambling Algorithm - JavaScript

I have been working on a Rubik’s Cube Timer website, and I need to make a scrambling algorithm. I’ll go over how the scrambling algorithm should work: Each face has it’s own letter, it’s initial. for examble, if you want to move the front face, you…
Jakub Chaloupka
  • 177
  • 1
  • 3
  • 12
0
votes
0 answers

Editing a specific line of a large file

I am creating the pruning tables for a Rubik's Cube solver, and this means I need to create a file mapping a unique identifier for any cube to a number in the range 0 to 25 which represents the distance the cube is from the solved state (25 is the…
acn3
  • 338
  • 3
  • 16
0
votes
0 answers

Better options than Vuforia for Extended Tracking?

Me and a friend are trying to develop an app with a very unique and strange concept. I have a rubiks cube, where all the stickers have been replaced with QR Codes, So that to the naked eye, they are impossible to distinguish from each other, but…
0
votes
1 answer

Fix Rotation for 2D Rubik's Puzzle

I'm working on this program that is a simulation for the Grid puzzle. Grid is like a 2- Dimensional version of the Rubik's Cube. Here is the criteria for this puzzle: 6 x 6 grid 2 faces user can rotate columns and rows rotations are 180…
user8177887
0
votes
1 answer

Solving a rubik's cube in java

I am, as the title says, writing a method of solving a Rubik's cube in java, and I am running into some difficulties. I am trying to implement Kociemba's Algorithm and to do this I am following an article from here (the specific part is about 2/3…
TGrossb
  • 44
  • 6
0
votes
1 answer

Python Rubiks Cube How to tell if 2 states are equal

I'm creating a Rubiks cube in Python and am running into the problem of checking whether 2 cubes are the same. I'm representing the sides of the cube as north, east, south, west, front, and back. I originally just had my function check if…
Quinn
  • 89
  • 2
  • 10
0
votes
0 answers

Temp 3d array not working

I am making a program that acts as the net of a 2x2x2 Rubik's Cube. In this method, I plan to make an if statement for each of the 12 possible moves (up clockwise, up counterclockwise, down clockwise, etc.), but my code for turning up clockwise is…
0
votes
3 answers

What is the esaiest way to get rounded opengl cubes

Always in the context of a Rubik's cube app in Java/Opengl with lwjgl, i want to improve my drawing (http://manuelselva.files.wordpress.com/2010/09/cube.gif) in order to have rounded edges for each one of the 27 small cube ? What i would like to…
Manuel Selva
  • 18,554
  • 22
  • 89
  • 134
0
votes
1 answer

Rubik's Cube OpenGL Implementation

What is the "easiest" solution to code a Rubik's Cube with the following features in Opengl: "Camera" moves to let user see the cube from any point of view Smooth display of cube moves in response to user clicks when playing I started with a…
Manuel Selva
  • 18,554
  • 22
  • 89
  • 134
1 2 3
8 9