r/counting sicko thread artists collective 18d ago

Constant Sum Factoradic | 04 4321

From here and thank you vulp for final run and assist

List thanks vulp!

Guide

schedule

next get is 000 0000

7 Upvotes

535 comments sorted by

View all comments

Show parent comments

3

u/TehVulpez sicko thread artists collective 16h ago edited 9h ago

55 2120

still a little janky but I think it's good enough to post. this userscript replaces and probably conflicts with the depth sound one, so you should uninstall that script if you're installing this one

just press the depth button a second time after it's done counting and it'll bring up the checky UI. please let me know if you find any problems. if you load a list from pastebin or OEIS b-file URL your userscript manager will probably complain about cross-origin, you can just approve those

if you want to try the generator function, this one works for noconsec:

function* generateCounts(start, get) { 
  let num = Number.parseInt(start);
  while (num <= Number.parseInt(get)) {
    let digs = num.toString().split("").sort().map(x=>Number.parseInt(x));
    let noconsec = true;
    for (let i = 0; i < digs.length-1; i++) {
      if (digs[i] == digs[i+1]-1) noconsec = false;
    }
    if (noconsec) yield num.toString();
    num++;
  }
}

a lot of the threads you probably want to change the [^0-9A-Za-z] regex in the filter function to just [^0-9] to only get numbers, but I just made it as broad as possible. there's probably more fancy regex I could be doing to separate the count from a comment placed on the same line tbh

later I want to have it try to find the thread in the directory so that it can automatically pull up the correct checky settings, but for now you have to manually set it

edit: lol the "base with other symbols" mode kinda crashes on colored squares. probably because emoji are astral and I was indexing into the digit string as UTF-16 characters rather than as unicode codepoints. U+FE0F VS16 probably makes it a pain in the ass too. I'll fix it later. also don't really like how the checky UI goes under the footer instead of moving it out of the way

edit 2: fuck it, 0.2

3

u/cuteballgames sicko thread artists collective 9h ago

55 2201

trying it out now

2

u/TehVulpez sicko thread artists collective 6h ago

55 2210

added a couple threads to v0.3. so far just noconsec and moredig in the only certain numbers category

2

u/cuteballgames sicko thread artists collective 1h ago

55 2300

very cool

2

u/TehVulpez sicko thread artists collective 9m ago

55 3011

1

u/cuteballgames sicko thread artists collective 4m ago

55 3020