« first day (1760 days earlier)      last day (3082 days later) » 

2:02 PM
Oh - I thought you were saying that we should count bytes differently for different MC creations.
 
Anonymous
No, I mean we should consider them different languages, like Minecraft and Redstone
 
Oh. Well then, yeah. But the same byte counting. :P
 
Anonymous
Yes ofc :P
 
Anonymous
 
Anonymous
2:05 PM
brb getting coffee and breakfast
 
Hi
 
@VoteToClose For now, all output is printed at once, if that's what you mean.
 
After seing @Emigna answering a few questions in Prolog, I'm thinking of maybe starting a "Tips for golfing in Prolog" question. Do you think there's enough interest for it in the community?
 
@Dennis So... that nullifies w then. :c Any chance it can be output whenever there is new output?
 
2:10 PM
That's on my to-do list.
 
\o/
 
2:37 PM
@TanMath hey :)
@Fatalize I don't think there's any point in having a tips question for a language unless there is at least one person interested in it. If you're interested, that seems like enough of a reason to post...
 
@Mego No matter how unclear you think the question is, I don't see how you can honestly argue that hardcoding output 1 is in any way correct.
 
Anonymous
@trichoplax I would use a Prolog thread, after the requisite "Tips for remembering how to use Prolog because it's been years since I last used it" thread
 
Anonymous
@Geobits I gave an explanation in my answer why it is legal, within the rules of the challenge. What do you dispute about it?
 
I dispute that 1 is a proper output for any of the given test cases. If you want to use unary as the input encoding, that's fine. But you have to work on the represented string, not the string you've encoded it to.
 
Anonymous
@Geobits Nowhere in the question does it state that.
 
2:47 PM
I don't know what else to say if you honestly think the answer is correct. I explained my -1, like so many people think they want.
 
Which answer is this about?
 
1
A: Find the center

MegoSeriously, 5 characters ε1,lI Since the encoding of the input and output wasn't specified, I went with unary, using 1 as the digit. If the input string has an odd number of characters, the median character is a 1, so that is printed. If the input string has an even number of characters, the m...

this one I think
 
Anonymous
@Geobits And I'm explaining why it is unwarranted. A -1 and a close vote on the question are warranted, because it's incredibly unclear. There is too much left to assumption, which allows cheaty answers like mine. However, for some reason, only two other people seem to agree with me.
 
And I agree with Geobits that it's pretty dubious
 
@Mego Uhm, I'm not sure how "challenge is unclear" leads to "I should post an answer." "Challenge is unclear" should lead to "VTC as unclear."
If your answer is meant as a signal to the OP that the question is underspecified, well then, it's really more of a close vote, isn't it?
 
2:50 PM
@Mego No, you made a protest answer to an "unclear" challenge. That doesn't make a -1 unwarranted at all.
 
but... you gotta get the green points...
 
Anonymous
@Geobits Is it wrong to take advantage of a loophole you see that will make your code much shorter?
 
Yes.
 
A VTC means "this question should not receive answers in its current form". If you think it deserves that, you shouldn't answer it.
 
2:51 PM
You said it yourself: the question is "incredibly unclear." So vote to close it! Don't answer it....
I just got ninja'd twice in a row :(
5
 
Not only that, but I disagree with the "loophole" you found anyway, to be honest.
 
Anonymous
@Geobits According to that logic, 14 people (including a mod) think that it is not unclear, versus 3 people who think it is unclear. The consensus is evident.
 
@Doorknob confirmed to be slowpoke
 
@Mego Who cares about what other people think? You said that you think it's unclear. So you shouldn't answer; vote to close instead. It's as simple as that.
@CᴏɴᴏʀO'Bʀɪᴇɴ nah not really
, in general, is a bad idea
 
2:54 PM
@Doorknob *I think that
 
@Mego Personally, I don't think the question is all that unclear. Like I said, your loophole doesn't even work, IMO.
Even if the unary part did, harcoding output is a standard loophole.
 
Anonymous
@Geobits What should be printed for éå?
 
Not 1, I'd assume.
 
Anonymous
I deleted my answer
 
does anyone else find the new shade of orange of ajax-loaded comments really unpleasant to look at?
 
2:55 PM
yep
 
Anonymous
@Geobits I am no longer discussing my (now-deleted) answer - what is the correct output for éå?
 
@MartinBüttner When you post a new comment, the same orange flashy effect appears too
 
yeah, I know :(
 
that used to be only for permalinked comments (#comment-foo)
 
0
Q: Is a function allowed?

ghosts_in_the_codeIs it allowed to use a function instead of a complete program, in a code-golf question? (This has probably been asked before, I'm unable to locate the link.) Asked wrt @agtoever 's query on Output the qwerty keyboard

 
2:57 PM
@Doorknob #comment-fu
 
@NewMetaPosts This proves that Martin is the ninja-est of the ninjas. :P
 
@Mego Whatever character is at the codepoint of those two averaged, or at least that's my reading of it. I haven't looked into edge cases, but that's why I haven't voted on the question one way or the other. I saw a dubious answer and commented on it.
 
@Mego This is a question you should be asking the OP, not us.
 
in what kind of language would you ever get é and å together anyway :p
 
-1
Q: Longest valid palindrome command in any language

PascalvKootenWrite a valid command (no errors) that is the longest palindrome. E.g. if you can execute "echo ohce" in a language without error, that would be valid.

 
Anonymous
2:59 PM
@Geobits The codepoints for those two depend on encoding. In CP437, they're 130 and 134. In Latin-1, they're 233 and 229.
 
Anonymous
What text encoding should be used for input/output? Just ASCII (0-127)? Latin-1? CP437? UTF-8? These things needs to be specified. — Mego 14 hours ago
 
@Mego when talking about "code points", people usually mean Unicode, which is independent of a particular encoding (and happens to coincide with Latin-1 up to 255)
 
Anonymous
The OP has not responded to any comments or made any improvements. In its current form, the question is unclear, and thus worthy of being closed.
 
Right. I don't have any problem with people voting to close it (though I'll be abstaining). VTC combined with (dubious) answer is what I had an issue with.
 
Anonymous
@MartinBüttner "usually" doesn't work here. We don't have a default for text encoding, and the question does not supply one.
 
3:02 PM
@Mego So does every single question have to specify an input and output encoding?
@Geobits And yes, a closevote and answer should be mutually exclusive.
 
Anonymous
@Doorknob Yes, for anything involving text manipulation. Either that, or we decide on a default, via a meta discussion.
 
I don't see how you could not consider UTF8 the default encoding in every question except if specified otherwise
 
@Mego my point was that the answer is independent of the encoding.
 
(By the way, "unary" is not an encoding.)
 
Anonymous
@MartinBüttner Not necessarily. In Python, you can use single-byte encodings with chr. For Unicode encodings (UTF-8, UTF-16, and UTF-32), getting a character from a code point is much more involved.
 
3:06 PM
@Mego Do you have a link to the spec that describes your encoding?
 
I wish I could see what I got pundit on
 
@CᴏɴᴏʀO'Bʀɪᴇɴ You can! There's a data.SE query.
 
Anonymous
Meh.
 
@Doorknob :O TEACH ME YOUR WAYS
 
Anonymous
I don't want to participate in the discussion about my deleted answer anymore. It's deleted. It doesn't exist, for all intents and purposes.
 
@Mego sure, but the answer should be the same. the transformation is applied to characters and their code points. how those are represented on your input and output streams is a different matter (where I think the only rule should be that it's consistent).
 
Anonymous
I agree now that I should not have posted it, and so I deleted it. It's a moot point now.
 
Anonymous
@MartinBüttner The point is, the code will be very different if a multi-byte encoding has to be supported, as opposed to a single-byte encoding which can easily be worked with through the use of chr and ord.
 
@MartinBüttner Thanks :3
 
3:10 PM
I agree with that in a general sense, but I usually take my cue from the test cases for things like that (right or wrong). If no test case goes outside ASCII, I'll use that.
Clarification never hurts, though.
 
Oh, the built-in standard loophole has finally hit 0. :D (at +51/-51)
 
I think what Geobits is saying makes sense. Use whatever encoding you want, as long as you pass all the test cases.
Any existing encoding, of course.
 
Anonymous
i=raw_input()

#single byte encoding
print i[len(i)/2] if len(i)%2 else chr(sum(map(ord,i[len(i)/2:][:2]))/2)

#multi-byte encoding (utf-8)
i=unicode(i)
print i[len(i)/2] if len(i)%2 else unichr(sum(map(ord,i[len(i)/2:][:2]))/2)
 
Anonymous
My point is, if there is ambiguity in the challenge that the resolution of will impact your code, it either needs to be addressed by the OP, or the challenge should be VTC'd as unclear.
 
Peace out ^_^
 
3:18 PM
@Mego Different people have different limits on their VTC-threshold, just like up/down voting. Ideally it would all be perfectly objective, but it rarely is.
 
I closed it and left another comment about what I think needs specifying (and what doesn't).
 
Out of curiosity, is there a single ruling that wouldn't invalidate any current answers (I haven't looked at them all)? If so, that could just be edited in IMO. It doesn't always have to be up to the OP. If there isn't, then it's probably too late to make this turn out good no matter what the OP does.
 
@MartinBüttner yes, I'll make it a priority, I just haven't found much time for coding recently...
 
@aditsu are you accepting pull requests? ;)
 
if they're not huge or weird changes, sure
 
Anonymous
3:24 PM
@Geobits As far as I can tell, all of the current answers should work with restricting the characters to ASCII-only.
 
Hmm. If that's the case, I think restricting it to that is probably the better option, rather than allowing the OP to now declare it needs to work for extended characters and breaking things.
 
Anonymous
The fact that the ASCII characters have the same ordinals in every encoding is pretty handy
 
Yes there are a few answers (mine included) that just assumed ASCII as it was left open and that was the shortest way to do it.
Opening it up would invalidate a few answers. And I'm fine with deleting or reworking but I could see others not being as Happy.
 
Anonymous
I'm going to edit and put a reopen vote on it. It didn't feel right to edit it while it was open.
 
@aditsu like implementing n as oNo for example? ;)
So... after this discussion about encodings and blah, I noticed that didn't have a tag wiki... I started writing one, but if someone can think of common pitfalls specific to string-based challenges, please add them: codegolf.stackexchange.com/tags/string/info
 
3:29 PM
Another somewhat common question is "what do I do with an empty string?", but I'm not sure it's worth including there.
 
When Does String Manipulation become ASCII art Manipulation? How Bad do my art skills need to be to just be considered a string?
 
@Geobits it is
 
@MartinBüttner How long is a piece of it?
 
@MartinBüttner hmm, ok, that's quite trivial though :p
 
@TimmyD It's half as long as a double piece, isn't it?
 
3:31 PM
@aditsu apparently nontrivial enough for the ticket to be pending for half a year :P
 
@Geobits Now that's a clever answer.
 
it's not like I implemented lots of other things :p
 
do you see the problem? ;)
 
anyway, I've been documenting operators on the wiki for a while, almost 1/day, maybe I can try to commit some small things too at a similar rate
 
Anonymous
@MartinBüttner I changed "Extended ASCII" to "Latin-1" in the tag wiki, since "Extended ASCII" refers to a number of different encodings, and Latin-1 is an encoding most people are at least somewhat familiar with.
 
3:34 PM
is that 1/day limit due to the fact that sourceforge.net is almost down all the time ?
 
I have a few local patches that have been sitting for some time
 
sourceforge still has regular uptimes?
 
@Optimizer I haven't seen it down at all in the last several months at least, I'm just busy
 
@Mego Fair enough, although my point was actually not to make it about a specific encoding, but about a range of character codes. I don't think it's that important there though.
 
Anonymous
@Geobits sourceforge is still around?
 
3:36 PM
I think they merged with geocities a while back.
 
har har
 
shots fired
 
Anonymous
@MartinBüttner I viewed it as listing examples, and since putting "Extended ASCII" as the encoding in a challenge would be met with a flurry of comments and closevotes, it seemed to me that listing a specific widely-used single-byte extended ASCII encoding was a better choice.
 
Anonymous
@Optimizer stop stop it's already dead
 
Huh. Apparently the Japanese geocities servers are still up.
 
Anonymous
3:38 PM
Now that the challenge is fixed and back open, I can help @phase with his issues :P
 
@Mego I think there is still a misunderstanding here. The second bullet point advertises not specifying an encoding at all, and the first bullet point is about specifying a range of characters. If that's still not clear, I should probably reword that part altogether.
 
Anonymous
@MartinBüttner Ahh, I see now. I'll suggest a different edit, then :P
 
anyways, I used to have a geocities page, it was on the hills in Silicon Valley :)
 
> As of 2008, Angelfire continues to operate separately from Tripod.com and now includes features such as blog building and a photo gallery builder. It also supports, for paid members only, CGI scripts written in Perl.
I used to have a geocities page, too. I mean, it starts with "geo"; what's not to love?
 
3:41 PM
@Mego rejected your proposal (because I don't think you can propose a new one before the old one is processed)
 
Anonymous
@MartinBüttner oops
 
Anonymous
I'm new to this tag wiki stuff
 
Not to be Nit Picky about it. But Op did Specify that winner would be in Characters not Bytes yet the leader board is still in Bytes? Though I agree Bytes is better do we want to be consistent or leave that for OP to decide?
 
@JimmyJazzx the leaderboard simply reads a number from the header.
 
Wow, the homework people are assigning these days needs to be better specified.
 
3:46 PM
@MartinBüttner Ok i wasn't sure as all the examples say Bytes and the BF answer that is 3 characters or 61 bytes is listed as 61 but I think I see why now. As the Bytes were listed second
 
fixed the examples
 
-2
Q: code golf challange

user47579 i need a program that Write a program that reads in scores from a file, sorts them and displays them • Add to this program so that there is a corresponding list of names which is also sorted to go with strong text the score. • Add to this program so that it is possible for a user t...

 
@Geobits really beautiful type setting with those <hr>s and the quote block though.
 
-1 not enough LaTeX
 
@Geobits Im pretty sure I have see that exact Question in a VB.Net Text Book
 
3:49 PM
I don't doubt it. I remember some pretty bad stuff back when books were a relatively useful way to learn this stuff ;)
 
Now that we've had the "code golf challange" I guess this whole site can close up shop.
2
 
We still need a "code golf programming puzzle" before we close up for good.
 
is what Dennis does.
8
@Geobits *challange
 
3:55 PM
Damn, I knew I forgot something.
 
we haven't had a decent KotH in forever
 
I've been lazy.
 
acceptance is the first step to recovery
 
Alternatively, you can blame Nathan Merril :P
 
Anonymous
@MartinBüttner I have one sandboxed now that should be fun, but I have been too lazy/busy to write the controller code
 
3:57 PM
we need an on hold "programming puzzles" challenge too for site to be closed
 
^^ this sounds so familiar...
 
I have 3 sandboxed I think, but I didn't want to tackle them before finishing my "single player KotH" tetris which has been rotting in the sandbox with a 95% done controller for a year or so...
 
Push that thing (further) to the side :P
Sandbox is not a FIFO system by any stretch.
 
alternatively, I could just get my shit together and finish up that controller.
 
Yea, but then what excuse would you have for the others? :P
 
3:59 PM
good point...
 
jeez, I found an archived copy of my personal page from 1999 o_o;
 
Link!
 
Anonymous
Programmer personal pages are like normal peoples' baby pictures
2
 
LOL :) I'm kinda hesitating...
 
Anonymous
Same with old code and elementary school assignments
 
Anonymous
4:02 PM
With the caveat that the elementary school assignments were usually better quality
 
Anonymous
I'm not sure whether to be happy or sad that the hard drive I had all my old code on died
 
"(PICTURE) <= This is a picture of me. "
 
"(PICTURE) <= This is a picture of me." ... Ceci n'est pas une pipe.
 
You look peculiar
 
4:03 PM
damn
 
Anonymous
> using professional editors like pico, turbo and notepad
 
Anonymous
I don't see vim in there ಠ_ಠ
 
translate: Ceci n'est pas une pipe.
(from French) This is not a pipe.
um ok
 
I still don't use vim
 
protip : don't use the word pipe unless you really know what you're talking about
 
4:04 PM
|
 
The Treachery of Images (French: La trahison des images [la tʁaizɔ̃ dez imaʒ], 1928–29, sometimes translated as The Treason of Images) is a painting by the Belgian surrealist painter René Magritte. == Description == The picture shows a pipe. Below it, Magritte painted, "Ceci n'est pas une pipe.", French for "This is not a pipe." "The famous pipe. How people reproached me for it! And yet, could you stuff my pipe? No, it's just a representation, is it not? So if I had written on my picture 'This is a pipe', I'd have been lying!" == Context == Magritte painted The Treachery of Images when he was...
 
Anonymous
 
bloody hell...
 
Anonymous
ninjo'd again
 
(fortunately?) the wayback machine didn't save the images that I actually used
 
4:05 PM
the mods are all getting ninja'd
 
> The picture shows a pipe. Below it, Magritte painted, "Ceci n'est pas une pipe.", French for "This is not a pipe."
O_o
 
Because it's not a pipe.
 
He was thinking of another kind of "pipe", me thinks
 
@Mego btw, if it wasn't clear, "turbo" refers to turbo pascal
and pico is the precursor of nano :)
 
4:08 PM
pascal... that's one language I haven't used in a long time
Damn, when we follow the link to know more, there is this written on the page
"The page is best viewed in Internet Explorer 5 or newer; at this moment it is the best browser (although it is made by Micro$oft)."
"the best browser" damn
 
those were the days
IE5 kicked netscape 4's ass
 
Anonymous
Also relevant: GEB p. 701
 
Anonymous
(The Two Mysteries by Magritte)
 
0
A: Sandbox for Proposed Challenges

CostantinoTypographic Chemistry Inspired by this: https://xkcd.com/1442/ Task You must make a program or function that take input a string from STDIN and output the possible allowed reactions (1 point per unique reaction, see also "Score" below) Rules A chemical reaction is allowed if all the "legs" o...

 
0
Q: 3D tic-tac-toe winner

ghosts_in_the_codeTwo players are playing tic-tac-toe in an 3-dimensional grid. Each side of the grid contains four cells, making a total of 64 cells. A player wins if he gets three pieces in a row, vertically, horizontally or diagonally (diagonally could be across any space diagonal). Input will consist of the ...

 
4:22 PM
Try it online! now has a GS2 interpreter:
1
A: Output the qwerty keyboard

DennisGS2, 38 37 bytes ♦wertyuiop asdfghjkl zxcvbnm♣B3$,■♪2◙ The source code uses the CP437 encoding. Try it online! Test run $ base64 -d > qwerty.gs2 <<< BHdlcnR5dWlvcCBhc2RmZ2hqa2wgenhjdmJubQVCMyQs/g0yCg== $ wc -c qwerty.gs2 37 qwerty.gs2 $ echo -n f | gs2 qwerty.gs2 g h j k l z x c v b n m

 
@Dennis You should make the homepage actually a homepage now. :P
 
I probably should.
 
Anonymous
@Dennis Just how many languages are you planning on adding to TIO?
 
As many as possible.
 
Anonymous
Neat
 
Anonymous
4:25 PM
In the interest of your site's health, you should keep Seriously very far away from it
 
@Mego Hahahaha.
 
Do you plan to add any non-esolangs, or are you just going to leave that for ideone etc.?
 
Anonymous
At least until I finish the bytes overhaul
 
@Doorknob I'm not sure yet. But until I got sandboxing figured out, they're off the table anyway.
 
4:27 PM
Ah, right.
 
Anonymous
virtualenv
 
That doesn't look like a sandbox.
 
Anonymous
 
Anonymous
ninjo'd
 
Anonymous
4:31 PM
@TimmyD (also my nephew has that same sandbox)
 
@Mego Nuh-uh, mine's a turtle. Totally different.
 
user image
2
 
Anonymous
@Dennis I'm a fan of Sandboxie, though I don't know how well it would work in a webserver environment
 
Anonymous
Also I think it's Windows-only
 
@TimmyD sandbox for trichoplax? where he tries out all his irl activities before really doing them
 
Anonymous
4:41 PM
@Dennis For Linux, FireJail looks promising
 
@aditsu That's one of the most generic cats I've ever seen.
 
final Cat<?> cat = …
 
@Mego Oh, that looks promising. :)
 
Anonymous
@aditsu Only final if you take it to the vet to get it spayed/neutered
 
Anonymous
I dream of the day when OS-independence is simple and universal
 
Anonymous
4:45 PM
When there is a single, consistent API that abstracts kernel calls, byte ordering, and all that other annoying low-level stuff, so that every program that uses that API can be platform-independent
 
@Mego So, Java ... ?
 
Anonymous
@TimmyD API, not programming language
 
carrot carrot
 
OpenGL for CPUs
 
Anonymous
Basically yeah
 
4:46 PM
@TimmyD OpenCL?
I guess it isn't exactly that
 
Isn't that OpenCL?
ffs
 
rekt
gg
 
Anonymous
A library, not a process, that sits on top of the OS/kernel and abstracts those details away. Java runs a VM on top, which is not the same. Plus, it's still possible to write platform-dependent code in Java
 
In all seriousness, OpenCL is kinda like what you are describing except it is a pain in the ass to code with
fuckin kernels
A good version of that would be cool.
 
Anonymous
But OpenCL is a hardware abstraction, not an OS abstraction
 
Anonymous
4:49 PM
Even better: platform/OS-independent executables
 
4 mins ago, by TimmyD
@Mego So, Java ... ?
 
Anonymous
> Plus, it's still possible to write platform-dependent code in Java
 
do you want it to be impossible?
 
@Mego So you want something more like libc for all platforms
 
Anonymous
@quartata Kinda
 
4:50 PM
lol dream on kid microsoft will never co-operate on something like that gg
hahaha
 
Anonymous
@aditsu Man don't crush my dreams with your notions of impossibility
 
Anonymous
imagine there's no OSes, it isn't hard to do
 
Anonymous
4:52 PM
nothing OS-specific to look out for, and no endianness too
 
Anonymous
you might say I'm a dreamer, but I'm not the only one
 
@Mego you were the one complaining that it's possible
 
@aditsu I didn't notice the pun until just then
 
Anonymous
someday you'll join us, and the code will live as one
 
4:54 PM
@Mego The only way for that to happen is if Microsoft dies, and by then we'd already have something like that
It's called libc
 
I acctually won a codegolf contest with Matlab!
7
A: Seamless conversion from square to hexagon

flawrMatlab, 223 215 209 184 163 bytes The rescaling is quite straight forward. For cropping the corners I overlay a coordinate system over the pixels, and make a mask via four linear inequalities, which determine the area of the hexagon. ​l=imread(input('')); u=size(l,1); L=imresize(l,u*[2 3]/4); L...

 
I mean, libc is used on everything BUT Windows at this point
 
Anonymous
Also POSIX
 
@Mego Yeah, exactly
No more backslashes
People have already attempted what you describe
The result was POSIX
 
@Mego I also dream of the day when everybody is using Linux :)
 
4:55 PM
POSIX (/ˈpɒzɪks/ POZ-iks), an acronym for Portable Operating System Interface, is a family of standards specified by the IEEE Computer Society for maintaining compatibility between operating systems. POSIX defines the application programming interface (API), along with command line shells and utility interfaces, for software compatibility with variants of Unix and other operating systems. == NameEdit == Originally, the name "POSIX" referred to IEEE Std 1003.1-1988, released in 1988. The family of POSIX standards is formally designated as IEEE 1003 and the international standard name is ISO/IEC...
Take a closer look at that acronym
> Portable Operating System Interface
 
Anonymous
@aditsu :P
 
Anonymous
This is why I love Cygwin. POSIX-compatibility on Windows.
 
Don't even talk to me about Cygwin
> Windows drive letters map to a special directory, so for example C: appears as /cygdrive/c. The /cygdrive prefix can be changed. Windows network paths of the form \\HOST\SHARE\FILE are mapped to //HOST/SHARE/FILE. Windows paths can also be used directly from Cygwin programs, but many programs do not support them correctly, hence this is discouraged.
 
@Mego I guess that makes two of us (I wouldn't really say "love", but I appreciate it)
 
Ew
 
4:58 PM
@quartata The first rule of Cygwin Club is ... you do NOT talk about Cygwin Club.
 
Anonymous
@quartata What's the issue there?
 
it's quite an unpopular position...
 
Anonymous
I love the existence of cygwin for when I don't have an option about working on a Windows machine
 
I remember windoze claimed to support posix since NT and 2000, they did it by implementing a couple of features somewhere in a forsaken corner of the OS, that nobody used
 
@Mego Why can't it just map them to /media
It exists for a reason
 
Anonymous
5:01 PM
> The /cygdrive prefix can be changed
 
@Mego Still doesn't mean that /cygdrive should be a default
It's good that it can be changed, but still.
 
Anonymous
It's easily changeable, so it doesn't really matter
 
2
Q: Josephus problem with three inputs

Sherlock9There's a question on this site that is similar to this question, but I have added a twist. You have three inputs, the number of people in the circle n, the k-th person counted out at each step, and the q-th person that survives. For example, in a circle of 20 people, the 20th person to survive...

 
Anonymous
sed -i s:/cygdrive:/media:g /etc/fstab
 
Anonymous
If a "problem" can be solved with a simple sed script, then it's not a problem, it's an inconvenience
 
5:12 PM
 
Anonymous
@TimmyD I'd say lots of those aren't exactly "simple" scripts
 
Anonymous
And there's a difference between a "problem" and a PPCG challenge :P
 
Every problem is an opportunity in disguise.
Kinda like a Transformer.
 
5:33 PM
This is now officially my most upvoted answer:
17
A: Implement a Truth-Machine

VoteToCloseMinecraft, 18 Bytes (MC Version 15w45a) As you can see, there is a lever directed into the repeating command block, which has the command say 1 in it. There is an signal inverting torch on top of that, which directs power into the single-run command block with the command say 0 in it. Wheneve...

 
Anonymous
@VoteToClose Neat
 
Woah. xD
 
Anonymous
:P
 
Anonymous
Fastest Upvotes in the West
 
@VoteToClose Wait who would build a Minecraft Redstone machine on any map but Redstone Paradise?
 
5:37 PM
Me?
 
me?
 
Mi mi mi mii.... la la la la...
 
5:52 PM
@Stefnotch For the Duck Tape Challenge have we confirmed that The Code copied Can't be posted after the Challenge? Or should I start hiding the code i need in my other Answers?
 

« first day (1760 days earlier)      last day (3082 days later) »