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
1 answer

Using Python openCV to accurately find squares from processed image for Rubik's Cube solver

I am in the initial stages of writing a Rubik's cube solver and am stuck at the following challenge: Using the following image-processing code gives me the following image: import cv2 as cv import glob import numpy as np for img in…
alphaomega
  • 137
  • 1
  • 15
0
votes
0 answers

Can two 3×3 scrambled rubix cube be exact same?

What do we mean by solved cube? Solved cube is one which have same color (centre dot color is considered as face color) on all 6 faces. For solving for this problem there are lots of algorithms discovered. But what if we want to make one scrambled…
0
votes
0 answers

Pseudorandom algorithm for color shifting rubik's cube?

I was thinking of ways to programmatically create one of the evil-est rubik's cubes. Then I thought of a concept I had seen on youtube known as a color shifting rubik's cube, which was also available on amazon apparently. The concept was that the…
Muhammad Hamza
  • 823
  • 1
  • 17
  • 42
0
votes
1 answer

Tkinter - How To Get Tag Name from Clicking on Rectangle

I'm fairly new to programming, so appoloigise for any inconsistencies / using code incorrectly) I've seen a few similar questions and answers on this topic, however I feel like I may be missing something. I've drawn a net of a Rubiks Cube, and I…
Ryanjewbo
  • 23
  • 2
0
votes
0 answers

How to get complete solution for Rubik's Cube from kociemba Library

I tried kociemba library in python, And here is my code import kociemba cube = "rorrybobogwyrrgwyobryybggoowygwwbrgbyywoogbrrbbgwgwyow" print(cube) cube = cube.replace('y', 'U') cube = cube.replace('r', 'R') cube = cube.replace('b', 'F') cube =…
0
votes
1 answer

Rotate layer Rubik's Cube

I'm programming a rubik cube in c with SDL and OpenGl. I have done all the implementation, except the rotation of a layer move (now if i press 'r' or 'f', for example, right or front layers change its colours). I don't really know how to implement…
0
votes
2 answers

Physics.OverlapBox being too big

I am doing a rubiks cube simulator. To make the sides turn, I have a collider on each of the sides, and I make the colliders parent everything inside them on click and then just turn the side. To get every object inside the colliders, I use…
4RZG4
  • 50
  • 1
  • 10
0
votes
1 answer

Rubik's cube Thistlethwaite algotithm, check for good edges

I'm trying to build a rubik's cube solver in C using the Thistlethwaite algorithm. I'm storing a cube as an array of 6 uint64_t integers (Faces). Each of this faces stores 8 colors as one byte. This structure let's me easily rotate faces using bit…
angauber
  • 43
  • 5
0
votes
1 answer

Rotate an object about a pivot in javaFX

I'm trying to create a Rubik's cube in javaFX and I am struggling with the rotating of the faces. Up until now I have just been adding the 9 cubies in a face into a group and rotating that 90 degrees to get the full face to rotate in the correct way…
0
votes
1 answer

A 7-Riffle Shuffle Algorithm in C# for a Rubik's cube

For a school assignment we need to implement a 7-Riffle Algorithm Method in C# which shuffles the faces of a Rubik's Cube. Unfortunately there is not enough resources on the web that show how it should be coded. I implemented the Stopwatch already…
Mandy
  • 1
  • 5
0
votes
2 answers

Android OpenGL texture / object detection

I'm trying to perform OpenGL picking (i.e. answer the "on which object did the user click?" question). I googled it and found a few different techniques, but none is ok for me checking the pixel color with glReadPixels: I'm using textures so…
Siddharth
  • 1
  • 1
0
votes
0 answers

Rubiks Cube Timer written in python?

I am a big fan of cubing, but I use Linux and can't find any decent timers. I tried to write one in python 3, but I haven't done is in years and it keeps drawing random errors. If says that the keyboard module doesn't exist. Could someone…
T1 L.
  • 1
  • 4
0
votes
1 answer

prolog query gets stuck even when base predicates are defined

i am creating a rubiks cube solver in prolog. i have implemented the predicates for solving white edges. but when i query it, it gets stuck. this is the code: :-use_module(library(random)). print_lis([]). print_lis([Head|Tail]):- …
0
votes
2 answers

tile disappearing from rubiks cube with rotation

I'm working on a 2x2 rubik cube, and was having trouble getting one side rotate with my program. The cube is a 2d array of squares. I'm just triying to do a 90 degree counter clockwise turn. This is what happens https://i.stack.imgur.com/78Xqg.jpg I…
0
votes
4 answers

Why BFS algorithm doesn't always find solution of rubick's cube?

I'm tring to write rubick's cube solver based on BFS algorithm. It finds way if there's one shuffle done (one wall moved). There's problem with memory when I'm doing more complicated shuffe. I have written cube, so one can does moves on it, so the…
1 2 3
8 9