« first day (3550 days earlier)      last day (1286 days later) » 

12:01 AM
@RedwolfPrograms I've had a couple of proposals in the Sandbox for a similar idea before, but the main problem is finding a task that works for both CnR and answer chaining
 
I was thinking something simple like "print the previous program's source code but a byte shorter"
 
What's the CnR part of that?
Also, if it has to be a single byte shorter, then the first answer determines the max number of answers and if it's any number of bytes shorter, all it takes is for an answer to be simple enough for a 1-byte solution and the challenge dies
 
Well it would be "print the cop part of the last answer but a byte shorter, then make another cop based on it somehow"
And that's just an example
 
Yeah, the problem is finding a good enough "somehow" to make the challenge a combo of the two, rather than just an answer-chaining with some CnR or the other way around
 
12:33 AM
0
Q: Unscramble the letters by letter frequency analysis

Zsolt SzilagyYou know those riddles where every letter is swapped for another letter? E.g. you get a text like JME JG EPP IFAPE EPJE CJPPPC BP, UIJCG JC EPP EFE GPJB EJIP EJ EJIP, F EPJIG MPJEPPPP AJUC BJL UP GJP BL MICJIJMPPJUIP CJMI. and are supposed to find out that it stands for OUT OF THE NI...

 
12:50 AM
Fixed the image generator I was talking about above, the resulting program is really fun to watch
 
1:23 AM
-2
Q: Chess: Is there a check?

Zsolt SzilagyYou get a string representation of a chessboard. It consists of 64 characters going row wise from top left to bottom right. The figures are denoted with: K king Q queen R rook, castle B bishop N knight P pawn for white, and lowercase k q r b n p for black. Space means empty. The starting would be...

 
2:18 AM
@NewMainPosts this is a subset of this
though, that challenge is really old and has bonuses which are discouraged now, and has strict formatting, both of which are bad by modern standards.
I'd consider dupe-closing the other challenge into this one but it's just unclear and not high-effort enough right now.
 
@NewMainPosts smh. should be called "Fridge: Is there butter?"
 
^challenge idea
 
Wait, how did I just now get Vox Populi? I've been on this site for two or three years now...
 
Given a fridge, output whether butter is present
 
fridgefridgefridgebutterfridge
 
2:22 AM
I only have one Vox Populi lol
 
Wait, you can get it multiple times?
 
wait
maybe not, never mind
 
No. that's silver badge code golf tags you can get more than once
 
nope you can't i'm dumb
 
@HyperNeutrino anything's possible
all you need is a system glitch and hey presto you've got two
 
2:24 AM
:P
 
@RedwolfPrograms no it'd be
 
Oh, like a picture of a fridge and then you have to detect butter?
 
yep
KOTH: fill the most fridges with butter
 
Our first high quality test case
 
beautiful
but it could be butter (better)
 
2:37 AM
Oh, btw, did you ever get your website working?
 
I think I did; turns out HSTS wasn't even enabled
still not sure what nasa-gov is ._.
 
Just tried and it seems fine now. Glad you got your site working!
 
yay \o/. thanks! yeah i just got my friend to fix the config lmao
 
I should probably work more on my website, I haven't changed it since like a year ago when I tried to make it look "educational" so my school would unblock it
 
Merchant reminds me very much of cookie clicker lol :P
haven't visited that game in years
 
2:50 AM
I am/was making a second version of it, I got some icons finished but started working on other projects
 
ooh, nice :D
it's a lot more interesting than cookie clicker tho imo
 
I also made a terminal based version, which was a good excuse to learn C
 
i can get about 11-12 clicks /sec lol
not too bad but makes it hard to move my mouse precisely
i can only get 7-8 with one finger
 
I had no idea anyone played my games, until one of my friends commented about how he'd see people playing Merchant in class. It was kind of sad when my school blocked it :/
 
oh, rip :/ your schoolboard seems like no fun lol
you were the one whose school board had GH blocked for a while too right
 
2:57 AM
Yeah. I don't think they realize it just makes people download games instead :p
 
lol, yeah :P your school blocks stuff like discord too i'm guessing?
also i assume the trades are auto-generated but are the upgrades pre-coded or also RNG?
 
The trades are random, the upgrades follow four paths based on certain events
 
ooh, okay that's cool
 
I think I wrote most of that code in 7th grade, I've got fairly detailed changelogs describing what I added and fixed between versions
 
there's this bloke on discord, he got an assignment to cause a floating point error, by assigning something to a and b, so that (a + b) * 10 and a * 10 + b * 10 are 20% off
and they have to be of similar magnitude
 
3:11 AM
Which language?
 
that's absurd right?
C
C 11
 
How big were the numbers?
I could see that happening with really big or small ones, but still...that's crazy
 
the assignment is to make it happen in the first place, not explain irt
 
a=b=0, 0 + 20%(0) = 0
e z
 
3:19 AM
I bow to your wisdom
float a = /*some value*/;
float b = /*another value*/;
float result1 = (a + b) * 10;
float result2 = a * 10 + b * 10;
float difference = abs_val(result1 / result2) * 100

printf("Difference: %% %f", difference);
Is abs_val a thing?
 
oh. well that would not work then rip
 
I can't find any abs_val, I'm sure it's just pseudocode for absolute value
 
so that code is suspicious too
 
But I'm pretty sure floats are inaccurate enough that a really big or small number could easily be that inaccurate
 
i mean we can't even have 0.1 + 0.2 = 0.3 in 2020 ;-;
 
3:23 AM
After all, an IEEE-754 single precision float only has 8 bits for exponent. I'm sure something like 2**26 would start to mess things up
Not sure about 20%, but I can get a difference of -nan :p
 
3:41 AM
if the goal is to get it to show 20%, then you need 400% difference
to add an additional layer of impossibility
 
Feels like something like denormal numbers might work
 
3:57 AM
must be something malicious to make students waste time
 
Did he end up solving it?
@HyperNeutrino you want a better test case? Here's one:
That should throw a few methods off lol
 
4:15 AM
When you outgolf someone by 14 bytes then realize the challenge requires case sensitivity
 
 
2 hours later…
5:52 AM
29
Q: Integer Complexity

The TurtleYour task is to write a program that, on input n, outputs the minimal expression of each number 1 through n in order. The shortest program in bytes wins. A minimal expression combines 1's with addition and multiplication to result in the given number, using as few 1's as possible. For example, ...

1+ solution possible?
 
6:26 AM
no TIO? :(
 
 
1 hour later…
7:35 AM
@HyperNeutrino there is the copypasted python interpreter on esolangs.org/wiki/1+
cant paste that link here, too long
 
@Razetime Press Shift+Enter after the link. Magic.
 
@Adám magic it is
 
 
4 hours later…
12:53 PM
0
A: Sandbox for Proposed Challenges

pxegerIs it a Pythagorean triple? code-golf decision-problem geometry math number-theory Given three numbers, determine whether they form a primitive Pythagorean triple. Here is the definition: all three numbers are positive integers they represent the side lengths of a right-angled triangle, that is,...

 
 
2 hours later…
3:00 PM
@Razetime oh, okay thanks. (also yeah multilining for long links is pretty cool, basically magic :P)
I'd love to see a 1+ answer but I don't think I'd have to time (or ability) :P
 
Wait, does the multilining work for data: links?
Nope, apparently not :/
 
you should probably use the sandbox, also do data: links even work in chat?
 
No, it seems they don't. I'd think they'd be less of a security risk than regular websites, because at least you can read the content of a data link
 
i don't think they're actually links though, but I'm not sure
 
I guess technically they're URIs not links
 
3:05 PM
i think it's more of a browser specific function (though every browser I know supports about:, data:, and mailto:), but not really an internet link
just like how i can do chrome:extensions in the omnibar even though that's just a chrome thing
 
And it works pretty much everywhere - except, of course, Internet Exploder.
 
of course it doesn't work in IE ._. lol
 
Microsoft employee #1: "Hey, remember those W3C specifications?"
Microsoft employee #2: "What?"
Microsoft employee #1: "Never mind"
 
3:23 PM
@RedwolfPrograms Gill Bates
 
Clarification, it does work on Edge... up to 4 GB
And if it's less than 32k and not HTML, even IE8 will churn it up.
 
@cairdcoinheringaahing don't know enough about this to try it, and it's difficult enough to not have examples soooo..
ima pass
 
4:02 PM
@cairdcoinheringaahing It would help I think if you put a slightly more programming sort of definition of the problem. I think I understand it, but since I'm only in a high school math class it would help if there was more of a code-like explanation of the task (like "take some positive integers as input, and return a provably unique positive integer for each possible input, making sure each possible output can be obtained given some input").
Other than that, I think it's a good challenge, and I'll be really interested to see the results. (I'd actually been thinking of something similar not too long ago, but involving rational numbers).
 
@RedwolfPrograms That's a good idea, I forgot not everyone knows what I know :p
 
Also, because of that I learned something new today! I had no idea pairing functions existed until I saw a comment under that post.
 
 
3 hours later…
7:14 PM
Any challenges where javascript beats Japt, or Python beats Pyth?
 
System operations? :thinking:
 
Maybe some sort of obscure builtin without a shortened name?
 
7:27 PM
@RedwolfPrograms Python probably beats Pyth on challenges which require an obscure module, beyond that, I'd doubt it, simply because of the $...$ feature that both have to run arbitrary Javascript/Python code
 
7:40 PM
fine, let's require lot of $s in the source code!
 
 
2 hours later…
9:53 PM
1
Q: The Knight's Dialer

Olivier GrégoireImagine you place a knight chess piece on a phone dial pad. This chess piece moves from keys to keys in an uppercase "L" shape: two steps horizontally followed by one vertically, or one step horizontally then two vertically: +-+ |1| 2 3 +-+ `-------v | +-+ 4 | 5 |6| ...

 
 
1 hour later…
11:01 PM
How is my most starred repository the interpreter for unsure? I made that language in an afternoon and answered one question with it...
 
11:42 PM
@RedwolfPrograms that's pretty strange, i'm unsure of why that is too
 
(Flashbacks to previous pun chain)
 

« first day (3550 days earlier)      last day (1286 days later) »