Closed rexroni closed 7 years ago
Pull request: #11
Here are some ways we've come up with that could do this (without messing with Cubically's existing syntax):
Rš
(or Rš
, or Rš¤
, etc) would rotate the right face x times, where x is the value of face 2R
with a diacritic mark over it would act like R
, except each argument passed to it would be a face index (rotate the right face x times, where x is the value of the face index) instead of a number of times to rotate the right faceIs there anyway to rotate layer x
?
Ok, so:
@rexroni I added your original suggestion for #
as š
in one the most recent commits.
Why is there no way to specify the argument of any function from input?
For example, F1 always turns the front face 1, but there's no way to specify F(whatever-is-in-7).
You could add a dereference character, we'll say X, where FX7 is interpreted as F(whatever-is-in-7). That would be more difficult, but more versatile.
I propose that you just add a new character that reads an argument from stdin, say: '#', so F# would read a 0-9 from stdin.
In fact I wrote a patch for this too, and I will submit the pull request shortly.