Given an integer input, write a program that prints a truthy value to STDOUT or equivalent if the input is divisible by seven.
Sounds simple enough, right? There's a catch - you can only use subtraction and multiplication. No other operators or built-in math functions are allowed.
Hint there is...
Introduction
As ToonAlfrink says: "Me thinks there aren't enough easy questions on here that beginners can attempt!". So the task is very simple. Given a string, output a truthy or falsy value whether the name is official or not.
When is a name official?
If the first letter is capitalized (no...
@isaacg how do you define associativity for functions that aren't closed over the domain? (Like the addition over 0..2 example)
I can compute (0+2)+2 from the table, but not 0+(2+2)
I thought about this some more earlier and came to the conclusion that associativity requires closure, and closure + commutativity implies associativity, but seeing that example I'm not so sure.
I guess, really, my main concern is that a bot have only a slightly higher mean but huge variance, and that would beat a bot with a slightly lower mean but little variance.
> For every bot, the ratios (wins+1)/(losses+1) will be calculated, then the mean and standard deviation of these ratios will be calculated. A higher mean will have priority, and in case means are within 1 unit of each other, the lower variance will have priority.
I don't see how you could add two numbers or do a primality test with just one accumulator.
In fact
Congratulations! -- I'm afraid this answer might be invalid. With a single accumulator, I don't see how addition (let alone primality testing) could be implemented in Deadfish~. — Dennis ♦Sep 7 at 16:54
@AlexA. I see now why that's a good idea - I'm going to attempt to change the challenge so it actually make sense, which will most likely invalidate most (if not all) questions... Most of them are invalid anyways, though — Jojodmo7 mins ago
I don't think we should generally disallow solutions written in non-programming languages:
They are only an issue for a minor subset of challenges (mainly kolmogorov-complexity or quine challenges).
Challenge authors can already exclude such solutions, if they don't want them. Individual voter...
If you've ever played Spacewar!, you know it was a fun game. If you haven't, know this: it was (and is) one of the very first and most important computer games. And it's still fun! The clone I grew up on is this one, which is, apparently and unfortunately, Windows only. So I recreated it!
The Ko...