Filipe Teixeira's Cube Simulator

  • Thread starter Thread starter Deleted member 36445
  • Start date Start date
D

Deleted member 36445

Guest
Presenting...

Filipe Teixeira's Cube Simulator

GitHub Repository

Test it for yourself

1713906538200.png


1713906556524.png


This program was developed with the aim of being lightweight and containing only the absolutely essential to represent an NxN rubik's cube.

This simulator accepts any algorithm in the official notation and returns a representation of the puzzle that can be rendered afterwards.

It can be easily extended to render the puzzle in any desired format (the renderer.js script), but it also provides out-of-the-box two formats: a navigable 3D reconstruction-like view and a cube net of a determined state.



Please give a star and contribute to the project if you have a good heart
 
Last edited by a moderator:
This is really neat! Just a small nitpick, but the cube projection seems slightly off; the tiles of the cube get more distorted the further away from the camera your are, e.g. the far end of the cube.
Yeah, the view is glitchy because I used a html table for it LOL

but you can extend it with your own renderers

it would be really simple to create a svg or canvas version of the view, but it's done that way because I lazilly transformed a cube net into a 3d projection with CSS
 
why would I want to star or contribute to chatgpt generated nonsense?
Chatgpt helped accelerating the process but I'm the author of the code. I still had to optimise most of it.

Feel free to copy paste anything from stack overflow and call your entire project stackoverflow nonsense.
 
Chatgpt helped accelerating the process but I'm the author of the code. I still had to optimise most of it.

Feel free to copy paste anything from stack overflow and call your entire project stackoverflow nonsense.
Good job with the simulator.

What is your use case for it?

Do virtual cube solves, store recons or make unofficial puzzles or higher dimensional puzzles with it.
 
why would I want to star or contribute to chatgpt generated nonsense?
ChatGPT can’t write full working code yet. Filipe still had to do most of the coding and work himself/herself. Just because she had a bit of help from ChatGPT doesn’t mean that an AI did all the work, it just helped. Same as when someone uses stackoverflow for help, people help you out with the project, but you are still the one who did 90% of the work.
 
Last edited:
ChatGPT can’t write full working code yet. Filipe still had to do most of the coding and work himself/herself. Just because she had a bit of help from ChatGPT doesn’t mean that an AI did all the work, it just helped. Same as when someone uses stackoverflow for help, people help you out with the project, but you are still the one who did 90% of the work.

You’d be surprised at how good ChatGPT can be at writing code. For a lot of simpler projects it needs some feedback on issues in order to debug, but it can definitely write code. I did an exercise to test this, and it was able to write a fully functioning chess game (with all the rules) with nothing but me running the program and describing any issues I found.

I’m not accusing Filipe of relying solely on ChatGPT; it can also be a great tool to enhance coding and to learn, similar to Stack Overflow. I’m just saying that ChatGPT is more advanced than some people realize.
 
You’d be surprised at how good ChatGPT can be at writing code. For a lot of simpler projects it needs some feedback on issues in order to debug, but it can definitely write code. I did an exercise to test this, and it was able to write a fully functioning chess game (with all the rules) with nothing but me running the program and describing any issues I found.

I’m not accusing Filipe of relying solely on ChatGPT; it can also be a great tool to enhance coding and to learn, similar to Stack Overflow. I’m just saying that ChatGPT is more advanced than some people realize.
Interesting, as I used ChatGPT not too long ago to write me a simple app, and it couldn’t do it. It was a note taking kind of app, where you could make a note, and save it for later use, and it just couldn’t do it. It eventually got the main app working, but it could never figure out how to make it so that the note I write stays saved on-device.
 
Interesting, as I used ChatGPT not too long ago to write me a simple app, and it couldn’t do it. It was a note taking kind of app, where you could make a note, and save it for later use, and it just couldn’t do it. It eventually got the main app working, but it could never figure out how to make it so that the note I write stays saved on-device.

I’m sure it has different strengths and weaknesses. I personally haven’t used it on my actual projects or work, so I’ve only tested it with similarly simple Python and C projects.
 
I’m sure it has different strengths and weaknesses. I personally haven’t used it on my actual projects or work, so I’ve only tested it with similarly simple Python and C projects.
Yeah, probably. I’ve tested it just for fun, although when I tested it I tried it on Swift. Maybe it’s just no that good at Swift as with Python or C.
 
You’d be surprised at how good ChatGPT can be at writing code. For a lot of simpler projects it needs some feedback on issues in order to debug, but it can definitely write code. I did an exercise to test this, and it was able to write a fully functioning chess game (with all the rules) with nothing but me running the program and describing any issues I found.

I’m not accusing Filipe of relying solely on ChatGPT; it can also be a great tool to enhance coding and to learn, similar to Stack Overflow. I’m just saying that ChatGPT is more advanced than some people realize.
If it writes a fully functioning chess game, how much of it is actually yours?


Feel free to copy paste anything from stack overflow and call your entire project stackoverflow nonsense.

That's just as bad. Maybe it doesn't matter for a personal project but that kinda thing can get you into huge trouble at work.
 
That's just as bad. Maybe it doesn't matter for a personal project but that kinda thing can get you into huge trouble at work.
I work with programming for over 20 years and I can say that what really get you into huge trouble at work is not delivering any code LOL
 
That's just as bad. Maybe it doesn't matter for a personal project but that kinda thing can get you into huge trouble at work.

That’s not true at all LOL. Stack Overflow is my #1 visited site at work, and any good programmer uses it. Computer programs are inherently unique, so you can’t just copy entire file directories from SO, but any time I’m trying to do something and I don’t know how, I look it up. Chances are I’ll be able to find an answer with code samples from SO that I can copy into my program and tweak/customize to get working. It’s not plagiarism, it’s knowledge sharing. Taking an entire program and source code is plagiarism (all SO code falls under a version of the Creative Commons License, if you’re curious you can look it up), but a function or handful of lines isn’t unique IP, it’s a way the language provides to accomplish one specific coding task.
 
Good job with the simulator.

What is your use case for it?

Do virtual cube solves, store recons or make unofficial puzzles or higher dimensional puzzles with it.
Thanks!

I created it to test alg combinations, and to simply render a cube without having to access an external server like virtualcube or without having to use virtualcube js port, which I find very weird to use

I also wanted to make my own simulator since I started cubing in 2010 but never had the skills/tools to do it until now
 
Thanks!

I created it to test alg combinations, and to simply render a cube without having to access an external server like virtualcube or without having to use virtualcube js port, which I find very weird to use

I also wanted to make my own simulator since I started cubing in 2010 but never had the skills/tools to do it until now
Oh nice, it is good that you took help from chatGPT.
 
Back
Top