well let me know if you're going to make it one dimensional. I think the rectangle-only challenge would be pretty fun too. it seems deceptively simple, but I don't see any approach that would be obviously the best.
Checking out top answers [here](http://codegolf.stackexchange.com/questions/47644/randomised-list-formatted-nicely). J 7 bytes, Java 190 bytes, ... Sure, J has built-in permutation so even more unfair to compare but still funny for me. :)
Although I'm not a huge fan of the @. This change really requires everyone to just apply the definition brute force. Without the @, someone clever might be able to come up with an explicit formula after all.
Wrapping Words around a Rectangle
code-golfstringascii-art
(Needs a better title!)
(Inspired by a challenge draft by PhiNotPi.)
You're given a width W > 1, a height H > 1 and string consisting of 2(W+H-2) printable ASCII characters. The task is to print this string wrapped in a rectangle of t...
"Then, I follow a pattern. Starting at the most recently plotted point (A), I advance to the next plotted point on the line (B) (wrapping around the line if necessary). Then, I advance to the next point (C) on the line. Then, I plot a point half-way in between points B and C. "
this would make it easier to understand for me
and you could add the letters to the example too
the example confuses me even more...
hmm, I still misunderstood
@PhiNotPi Is this correct? Let's call the most recently plotted point A and the three following (already plotted) points B, C and D respectively (wrapping around the line if necessarry). The new plotted point will be the point half-way between points C and D.
and plotting points with X and @ and non-points with . (point) doesn't help to understand either :)
Hmm k, I remember having a discussion with someone who had a ><> answer which expected the value on the stack, and it seemed to me they thought it was the norm (though I was sure it was the opposite)
@Runer112 I think that's unavoidable to some extent. For example, I don't have an APL interpreter, so I can't test any of the APL answers, but I'll still upvote them because they're often awesome. :)
Thanks! Anyway, I think the best thing you can do if you find a wrong answer is to post a comment saying it's wrong, so more people don't upvote it (without checking, at least).
Not sure what the general consensus is on editing the answer so that people who already voted can also remove their votes... on one hand, it's basically working around a poorly-thought SE feature, but on the other hand, it does kind of come across as a dick move. :/
> I haven't run it myself, but just from looking at it, I'm like 99% sure it'll crash every time
Maybe you should run it before talking much more about it? No offense, just saying... isn't that what you're complaining about? That people are judging before testing?
@IlmariKaronen 1) If editing to golf someone else's code is not allowed, I'm pretty sure that falls under "dick move" nicely and 2) How often do people go back to a question to remove a vote?
TI-84 Basic (Calculator Script), 376 373 bytes
If it runs on a TI-84 calculator, you'll be able to use it on a standardized test... so it's useful ;)
Minimum operating system version - 2.53MP (MathPrint) due to the summation sigma
#Initialize instruction pointer
:1->I
#Initialize variable set
...
It'll take him an awful lot of work to fix the answer, but hopefully it happens
God forbid they ban video games. Then they'd have to play with really dangerous things like Legos. You can make a toy sword and actually hit somebody with it.
Yea, the animal cruelty thing is weird, too. It's not like it teaches you to just run around killing stuff. You farm and kill things for meat, leather, etc. You know, what people have been doing for thousands of years to survive.
being a vegetarian and general nut case, I never kill animals in games, this means I have to be Egyptian in Age of Mythology, so I can be sure to have Farms from the first Age
wolves in AoM are a problem, because they are unrealistically aggressive, so I have to go to great lengths to build walls around them to avoid accidents
When you say "animals", do you mean realistic animals, or anything that moves, mythological or not? I can see the latter being very hard in many games. Also, does that include people/troops?
@PhiNotPi If I created another Evolved bot to conquer the new Dwarf, would I have to post it as a new submission or could I replace the first Evolved bot?
Sometimes, when I'm really bored (really bored), I like to draw a line segment and draw points on it.
First, I draw a line segment of a certain size, which is 2^N for some value of N. The line will be represented by a series of . characters.
................
Then, I plot a point at the left ...
I agree with the wikipedia definition. It's a sequence of characters. As the name suggests, it's one-dimensional. I program a lot in C and sometimes in Pascal, which both implement strings in different ways.
C doesn't have a string type, only char[] with a string by convention being terminated b...
@PhiNotPi If that's your cutoff, maybe you should add that to the meta question I linked. So far I haven't seen any other opinions besides "it doesn't matter", so it would be good to make that one heard somewhere other than chat.
I mainly accepted the current answer because there wasn't a single answer that said anything else. If your argument is compelling and people like it, the "default" can change ;)
Personally, I like char[]s, since Strings are wordy as hell sometimes :P
does anyone have a fun example to add for meta.codegolf.stackexchange.com/a/4881/8478 ? I'd like to add some chicken-egg style sentence that you can start reading in at least two places.
I guess "the next end step" wasn't clear to the OP
honestly, I think it's a legimitate question. just like when you say "next Friday" (on a weekday before Friday) you might be referring to "Friday next week"
true, although I think this is closer to weekdays, since both cases refer to time periods in a fixed cycle. I guess new players don't necessarily expect magic card texts to be written which as much care and deliberation as they are
@Optimizer codegolf.stackexchange.com/questions/47588/… ... it's a bounty ... it's his rep ... he can do with it whatever he wants ... if the bounty said "for Mac's outstanding answer" he could still award it to Runer's answer, and it would be his own business.