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
1
vote
2 answers

Visually correct rotation with OpenGl and touch screen capabilities

I have been trying to do Cube of Rubik for android. I have one question about rotations. I want to rotate a figure visually correct. It means if user touch screen and after move his finger to right a figure rotate to right from side of observation…
1
vote
1 answer

Building a Tensor instead of a Variable Sized Array

So here's the skinny: Imagine a Rubik's Cube; it's 3x3x3. I happen to have an array that is a rubik's "cube" only it's 4x4xn. With n starting off as 1 When a certain condition in each 4x4 matrix within the array is true, then the matrix…
Jonathan Charlton
  • 1,975
  • 6
  • 23
  • 30
1
vote
2 answers

Vertical and horizontal scoll at a time in gridview with infinite scrolling IOS

How can one enable horizontal and vertical scrolling at same time in a grid view? If I have a 4x4 grid of thumbnail images, I want to implement swiping in both directions, left/right and top/bottom. Currently I am done with left and right swipe, but…
ROHIT
  • 51
  • 10
0
votes
1 answer

Android Kube API Samples gets out of structure

I'm using the Kube application from Android API Samples for an application I'm working on. The sample creates a model of the Rubik's Cube in OpenGL made out of 27 small cubes. Afterwards the cube is being scrambled in the animate() method by…
eladrich
  • 755
  • 1
  • 5
  • 15
0
votes
0 answers

Implementing Thistlethwaite's Rubik's Cube Solving Algorithm in Python

I am attempting to implement Thistlethwaite's algorithm for solving the Rubik's Cube in Python. Please see his paper here. I understand how you get into G1 by having all edge pieces brought home without ever using a U or D turn. Reference However…
Zach C
  • 71
  • 1
  • 10
0
votes
1 answer

Execution a list of functions with Ursina

I'm writing Python code to solve the Rubik's cube The output is a list of rotations. In other hand I have an interface made with Ursina that shows the cube and can be interacted with using The keyboard. My question is how can I bring the cube to…
0
votes
1 answer

Adding buttons around a table in Blazor

So essentially, I am programming a rubiks cube solver where I am using blazor to display the 2D face- I want to add buttons north, east, south and west of the 2D face which are labelled "see left", "see right", "see up" and "see down" which shows…
0
votes
2 answers

Unwanted Brackets Output in Rubik's Cube Scrambler

I am making a Rubik's cube scrambler program using python 3.10.2 and everything works correctly except for one thing. When the randomly generated scramble is outputted, unwanted square brackets, quotation marks and commas show up as well. Any idea…
0
votes
0 answers

rubiks cube animation of face rotation rotating in weird ways

Its kind of hard to explain whats wrong with my program so ive made a video to visually show you https://youtu.be/j8yrB2BQUrI As the video shows the rotations which involve y and z axis rotations do not work properly. Ive added the code below and im…
0
votes
0 answers

How to display correct sides of 3d cube so that the colours dont overlap

I currently have a program which creates a rubiks cube and can solve and scramble and all that sort of stuff but i'm still not happy with the actual cube implementation. Currently it displays the front face and either the left, top, right or bottom…
user19666559
0
votes
1 answer

Creating an animation for turning rubiks cube

I am currently creating a rubiks cube project for my a level NEA and currently the cube solves itself so I am now focusing on the implementation of the cube. I have got to a stage where i have a cube made up of 26 different cubes to allow me to give…
user19666559
0
votes
1 answer

3d cube y axis rotation not working properly

I am currently creating a rubiks cube project. The cube solves, but now I'm trying to implement a 3d model of this cube. At the moment the x axis and z axis rotations work correctly, but the y axis rotation seems to start of as a cube but as it…
user19666559
0
votes
0 answers

Creating rubiks cube model in c#

I'm looking to create a 3d model of a rubiks cube and im not worrying about animations, all I want is a cube that can be rotated around. I've already implemented a sorting algorithm so once I have a 3d cube my project will be complete however I've…
user19666559
0
votes
0 answers

Is there a way to make Colour detector more accurate?

I have created a colour detector for a Rubik's Cube using OpenCV. My plan for this it will then output the solution to the users. So far it detects some colours using OpenCV when the cube is held in the webcam, however some of the colours detect…
Emmett
  • 1
0
votes
1 answer

I'm trying to code a 2x2 rubik's cube simulator but one of the functions isn't working

So, as the title says, I am trying to simulate a 2x2 Rubik's cube, however the r() function does not appear to be working. I have read through it and I can't find the problem, anyone know how to solve this? Thanks in advance! The cube: cube =…
1 2 3
8 9