A leaper is a category of fairy chess piece which moves by "jumping." A normal knight is a (1,2)-leaper, meaning each move involves moving a distance of 1 square in an orthogonal direction and 2 squares in the perpendicular direction.
.o.o.
o...o
..N..
o...o
.o.o.
There are many different lea...
Seeking Leapers
code-golfgridgraphs
I recently got a really weird irregular chess board. It's squares are all over the place and not even all connected. At least they're still laid out on a regular grid. I want to adapt the chess rules to be able to play on the board, but to start with, I need ...
the only thing the ES flavour has going for it is [] and [^] (where the former is only useful in golfing and the latter is only necessary because it doesn't even have a bloody s modifier)
I recently got a really weird irregular chess board. It's squares are all over the place and not even all connected. At least they're still laid out on a regular grid. I want to adapt the chess rules to be able to play on the board, but to start with, I need a piece that can actually go anywhere ...
I have no idea how to tag things, I only ever retag basic stuff because I'm too likely to make a mistake with anything fancier than string or number :P
they could be... I'd usually apply as many reasonably applicable tags as possible prioritising the more specific ones when I run out of slots
so if a challenge is about maths and there aren't a lot of good tags for it, then math is fine, although I'd omit it when all of [number], [sequence], [number-theory] and [primes] are applicable (even though [math] would still apply)
But what if they aren't necessarily most logically a sequence? Sure, numbers can always be ordered in some way, but IMO sequence makes more sense for something like Fibonacci numbers rather than, say, palindromic numbers, which aren't constructively related to each other.
@NathanMerrill yeah but I think [sequence] is also used for some challenges about dealing with sequences as input, which might be a misuse of the tag and could do with [array-manipulation] instead
so, going back, what if we removed math, and for each of them, either pick the particular field its in, and for problems related to equations, add a equation tag?
@zyabin101 a few ones I want to add ([color(s)], [polyomino], [compiler]/[transpiler], [interactive]) ... a few I want to reorganise, e.g. I'd like to split [subsequence] into [substring] and [subsequence]. go through music/audio and make sure they're used correctly, maybe introduce specific tags for input or output like we have for graphics. also get rid of some obsolete tags.
maybe make the question something like "that [math] tag is way too broad, should we get rid of it, and if so how can we tag some of the [math] challenges more appropriately?" then put your own opinion and suggested course of action in an answer
I do think number has a place, but it's current wording is rather bad, I agree. I think if your challenge has to do with properties of numbers it makes sense, and I don't know what other tag to use (except math... :P )
What makes the ideal question? Perhaps it is merely the abstraction of a profound thought and the initialization of a dream, a hope, a thought, a (… 5,024.2 characters omitted). Therefore, I propose that we find such a factor to quantify questions. I propose also that this factor be called QF, or...
@NathanMerrill I think [arithmetic] and [algebra] are a bit different. to me the former implies that you're just doing a basic calculation of an expression (using basic arithmetic) whereas the latter involves solving equations.
@El'endiaStarman From what I know about magic squares you can't have a 2x2 one with all distinct values, without any other restrictions? (Haven't watched video)
The math tag is incredibly broad. Its description says:
The challenge involves mathematics. Also consider using more specific tags: [number] [number-theory] [arithmetic] [combinatorics] [graphs] [geometry] [field-theory].
After going over the tag, there seem to be three distinct types of ques...
I keep getting the error Traceback (most recent call last):
File "/Users/liamdocherty/Documents/stage4.py", line 24, in <module>
File=open(FileName,'r')
FileNotFoundError: [Errno 2] No such file or directory: 'Class2_results.csv' in python editor when trying to run my program, why is this? ...
@quartata double the fun of == operators, checking if types are equal only if they can group the types together. Floats and ints. Lists and tuples. Strings and bytes. That sort of thing
I have a quick newbie question for those present. I've tried researching around the site, but I can't quite get the answer I'm looking for. If I have an answer in the same language as someone else that's shorter, should I still post it? Or is it generally considered better form to comment and help improve someone else's answer?
@Xanderhall If it's significantly shorter and/or uses a different algorithm, post it. Otherwise, it's more generally accepted to comment with your improvement.
@Xanderhall If your answer is close to another answer, I'd comment, but if you use a totally new approach (well I'd probably still comment it) I would say it is acceptable to post as a new answer!
@quartata Ah, darn. Javascript out thought what I thought would be a horrific mishmash into a slightly sane horrific mishmash
@Xanderhall I do that all the time :D Though I try to help first and if I can think of too many improvements, or a few improvements that would be quite significant, I figure they might warrant a separate answer
@El'endiaStarman ^ Is this correct english? I'm always wondering, as I am very tempted to say this but after a few moments I always resort to neither do I?
@flawr Yes. Hmm. Neither do I is correct, but doesn't flow as well. It may be one of those things that doesn't fit into the usual rules of English. Lemme look it up.
@Xanderhall Your algorithm doesn't need to be completely new. I've written answers that with only one part that is new (different way to calculate binomial coefficients) and it counted
In colloquial spoken language some people use me neither in place of neither do I.
A- I don't like getting up in the morning.
B- Neither do I. /Me neither.
In the US some people will also use me either in that case:
A- I don't like getting up in the morning.
B- Me either.
But this...
In this circumstance, which would be the most correct / natural answer?
Person 1: I don't eat meat
Person 2: Neither do I / Nor do I / Me neither / Me either
This says both neither do I and Me neither are often used. But I have also heard / read "me either" and "nor do I" in multiple scenarios....
@Sherlock9 I have an answer I want to post that essentially takes a current answer formatted as a loop, and compresses it to one operation. Much of the answer is using the same functions, but it's also a little shorter (69-65 bytes)
Powerball is an American lottery that has recently gained attention because the current jackpot (as of January 11, 2016) is the largest lotto prize in history, at about $1.5 billion (USD).
Powerball players choose 5 distinct numbers from 69 numbered white balls, and 1 one "Powerball" number from...
The context was talking about "work work", which is the work that you do that you get paid for, distinct from work that you do for fun or out of personal conviction.
@El'endiaStarman My pastor once went to (India?) where something similar happened. He used double negatives for emphasis of the positive, where there it meant the emphasis of the negative, producing interesting results.
@El'endiaStarman VSauce had a video about this not too long ago. Seems like we use it to distinguish words when the original has become generic. Like, a book book, as opposed to an eBook.
For the non-zero digits on a standard numpad
789
456
123
consider placing a chess knight at any digit and moving it around with any number of normal L-shaped jumps, tracing out a positive decimal integer. What positive integers can be expressed in such a way?
One of them is 38, since the knig...