Sidechat icon
Join communities on Sidechat Download
i know it’s not much, but i’ve been working on a rubik’s cube in three.js w/ internal representation
upvote 21 downvote

default user profile icon
Anonymous 4d

Aye dude that’s pretty sweet!!!! That’s really cool! How did you get that to work? Also, have you considered adding AI to it to solve it? I think it would be cool!

upvote 3 downvote
default user profile icon
Anonymous 3d

This is sick

upvote 1 downvote
default user profile icon
Anonymous replying to -> #1 4d

you don’t need AI to write an algorithm to solve a rubik’s cube

upvote 4 downvote
default user profile icon
Anonymous replying to -> #1 3d

What are you, my corporate manager?

upvote 17 downvote
default user profile icon
Anonymous replying to -> #3 3d

Okay this is actually quite funny

upvote 1 downvote
default user profile icon
Anonymous replying to -> #1 3d

thx! it was a mix of hashmaps and arrays to represent the positions + orientations of the individual pieces, updating the state of the data structures as the users rotates the faces, and using the raycaster in three.js to detect click and drag location/direction on the cube. i’m considering implementing a solver, though not sure yet

upvote 7 downvote
default user profile icon
Anonymous replying to -> OP 3d

I’ve always wanted to do it, but I never knew how to. I can do the actual rubies cube in 10ish seconds but programming this would take 10 years, so kudos to you my friend!

upvote 5 downvote