Skip to content

Instantly share code, notes, and snippets.

@izabera
Last active July 15, 2025 20:05
Show Gist options
  • Save izabera/788000830d104fa75cebc58e443239e3 to your computer and use it in GitHub Desktop.
Save izabera/788000830d104fa75cebc58e443239e3 to your computer and use it in GitHub Desktop.

asking gemini to write some cube code

i'm writing another lil cube thing. if you've ever written a rubik's cube simulator/solver, you will know that some parts can be more akin to data than to code. one way or another, you always end up with lots and lots of tables to select the right pieces and move them to the right places. if good code reads like poetry and bad code reads like a phonebook, this is always easily in the top 10 most mind-numbingly boring programs of all time.

so i figured i'd get gemini cli to do some of the work for me.

i wrote the solved state and U, and told gemini to generate the rest. this is what it wrote:

image

it wrote this to implement D R L F B but the code didn't compile due to failing some of my compile time checks. then it tried to find a solution in silence for a long time

image

such a long time that it ran out of witty titles relevant to the project and started making up jokes to fill the space

image

i see

image

right

image

uh-huh

image

yea sorry my bad

image

and finally it stopped without saying anything. possibly due to some kind of timeout on the backend side?

image

the error log showed this, the json file only contained the last status messages from several minutes ago, nothing about what actually went wrong

image

i commented out L and B as the rest were passing the compile time checks, and this is the result. thank you gemini, that's almost what i wanted, you managed to implement D' instead of D, and your F isn't too far, well done.

it's now after may 2025. ai still can't into cube.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment