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
3 answers

Hide Rubik's Cube Internal Wirings

In the context of a Java/OpenGL application I am drawing a black wired only (without filling) big cube composed of 27 smaller cubes. To do that I wrote the following code: for (int x = 1; x <= 3; x++) { for (int y = 1; y <= 3; y++) { for…
Manuel Selva
  • 18,554
  • 22
  • 89
  • 134
0
votes
1 answer

unable to prompt information message or warning message in javaFX/

I got the source code for solving rubik's cube in javaFX from here. There's a code for prompting dialog for user input or for confirmation as: Button bSeq = new Button("Sequence"); bSeq.setOnAction(e -> { String response; if…
0
votes
1 answer

C/OpenGL - Unable to modify cubes independently?

This is my first time working properly with OpenGL, although I have worked a little bit with C before I have written my own drawCube function which takes in an coordinates array for the origin of the cube. I was hoping the code would draw the cubes…
bla9x
  • 469
  • 7
  • 17
0
votes
0 answers

Manipulate a Rubik's Cube in Prolog

I want to do some basic rotations on a scrambled Rubik cube in prolog untill it's solved. I am thinking of saving the cube as lists like…
unt mazga
  • 41
  • 1
  • 5
0
votes
3 answers

Using JSON to generate HTML elements, multiple class names and id. - Without JQuery

I've been building a virtual rubik's cube on codepen using JS and CSS only. - Forgive me any apparent stupidity, I have been coding less than 3 months, and less than 1 month in JS. I currently have made two versions, but for version 3 I need to…
Peachey_A
  • 129
  • 1
  • 2
  • 8
0
votes
1 answer

Android Rubik's Cube Kociemba optimal solver memory shortage

I'd like to ask for some help about the following problem I have. I'd like to create an application that solves the Rubik's cube with an optimal solution. I downloaded the following library, whitch supposedly does just that using the Kociemba's…
bodorgergely
  • 558
  • 1
  • 3
  • 12
0
votes
1 answer

Rubik's Cube Simulator Troubles

For my science fair project, I'm making a Rubik's Cube Simulator. I'm having a logic error with my code, and I can't figure it out. My dad and I have been poring over it for hours and haven't found anything wrong. The action listener calls the…
user3142972
  • 897
  • 1
  • 8
  • 11
0
votes
0 answers

ThreeJS scenegraph issues

I have spent the last few days working on a rubik's cube in Three JS. I am almost done with it, but am having a problem with proper nesting of groups. Basically I have all the cubies made up and when one of the center cubies on a face is clicked,…
0
votes
1 answer

Trying to solve a rubiks cube in Java

I have developed a class so far that can represent a rubiks cube using a treemap (best way?) each color is mapped to a key 0 - 53. the keys always stay the same and are represented by a 2D view of the cube. I made a rotate90 method that will take a…
Andrew Lohr
  • 5,380
  • 1
  • 26
  • 38
0
votes
1 answer

Vanishing points in rubiks cube

Hi I'm trying to do the Ex 6.5 from Szeliski's book ... But I'm stuck at points 3 and 4, I have the theory of what a vanishing point is, but what does it mean to find it for each face? and how about the focal lenght and rotation angle for those VP?…
vlavyb
  • 25
  • 7
0
votes
1 answer

Adding a node to multiple Groups : Java3D

Well, I'm developing a application using Java3D, which can solve Rubik's cube showing the user step-step solution. I did my Algorithm part perfectly, and now the issue is with 3D cube, Till now, i've created 27 cubes as in real one. The problem is…
Sravan U
  • 67
  • 1
  • 7
0
votes
0 answers

Rubik's Cube in Java 3D API

I'm writing a Rubik's Cube application in Java 3D. I didn't have any problem to draw the cube. The rotation of the cube in the universe function too. Now I will rotate the different faces. This function as long as I rotate only one face. But when I…
Molitoris
  • 935
  • 1
  • 9
  • 31
0
votes
1 answer

DrawingPanel.py Drawing a rubik's cube

using python i'd like to draw a rubik's cube based on this picture http://vixra.files.wordpress.com/2010/0 ... s-cube.jpg this is my current code http://pastebin.com/MfF07ze4 but i'd like the code to have at least 5 for loops and 5 functions that…
Aiko As
  • 13
  • 7
-1
votes
2 answers

How to add this function in my Rubik's Cube Timer?

So here is the code i used to make this timer: import tkinter as tk import time import keyboard class RubiksTimerApp: def __init__(self, root): self.root = root self.root.title("Rubik's Cube Timer") self.start_time =…
TaranJS
  • 15
  • 7
-1
votes
1 answer

Problem on checking Ray and Cube intersection

I am stuck right now with my RubiksCube Project. What I want to achieve: On left-click checking if a single Mini-Cubie was clicked or not. (The Cube might be rotated when clicked) The Code of the other Rubiks Cube classes works correctly. We need to…
Diazodiac
  • 11
  • 3
1 2 3
8
9