Do you have any code-golf tips for writing in SOGL, a golfing language created by dzaima?
Your tips should be at least somewhat specific to SOGL.
Please post one tip per answer.
Code Golf Stack Exchange is a question and answer site for programming puzzle enthusiasts and code golfers. It only takes a minute to sign up.
Sign up to join this communityHere is a new, buggy but mostly working online JavaScript compression creator. There, in each line enter a part of the string on each line which closest matches one of:
niooaaoasoioaiaaaoiineeaei
where there aren't a lot of different characters. It also works well for just a single character repeated. This has a limit of 98+(different characters used), and the compressor (currently) doesn't auto-split those./\|_-
and \n
. Practically the same as custom dictionary strings, but more efficient. Note that this is chooses whether to use /
and \
with the same bit, so then custom strings will be used. This has a limit the same as custom dictionary strings.spaceface
do two parts of space
and face
. Each english part has a max of 4 words. If a 4-word part is followed by more english, it adds a space between. Trough the compressor will automatically split the input for you.I
, I've
, and a couple others), so you must correctly case if after usage (using the characters ⁽
- uppercase 1st letter, ⁾
- sentence-case, ū
- every words 1st letter).-_-_\_/_-
is shorter than
-_-_\_/_-
and
as different partsAn example input would be
row
,
row
,
row your boat
,¶"
, which outputs "π¾⌡īk#S)G⁶⁷λ7&[¶⁶āΡn‘
, after which I can put uppercase 1st letter and remove the starting quote and get π¾⌡īk#S)G⁶⁷λ7&[¶⁶āΡn‘⁽
for Row, row, row your boat,\n"
niooaaoasoioaiaaaoiineeaei
was that my magic string from The Alphabet song?
\$\endgroup\$
Apr 23, 2017 at 22:10
You can remove quotes if the string they're encasing is either at the beggining of the program, or right after another string. For example, "hello”"world”
can be shortened to hello”world”
. This works for all types of quotes, mixed or not.
Similarly this works with brackets. No need to write }
after {
, ?
, nor any of []F∫‽⌠
. You can also ommit a starting {
if there exists and ending }
tips
questions are actually on topic here (see all the others under the tag). \$\endgroup\$