You know one thing I wish more people would do is as the person posting a challenge make sure to upvote all answers (that have at least some effort). Makes sure everyone gets some happy rep
new idea for a game like qwop: you are a cube. you have 6 keys that rotate the cube along each face. you must move directions / navigate obstacle courses by rolling your cube along those faces
@user56656 I've noticed a few incorrect answers (Lynn's and the assembly one) on "Does it Lead or Follow?" Because the Pyth answer does something slightly different to what the explanation claims. Any idea on how this should be dealt with?
Limit your numbers by your runs
Title subject to change if I have a better idea
code-golf decision-problem array-manipulation
Self-limiting lists
Consider a nonempty list L containing nonnegative integers.
A run in L is a contiguous sublist of equal elements, which cannot be made longer.
Fo...
@user56656 The problem of the volume of the remainder is the classic one. This is the volume of the hole... although it's easier if you know the remainder of course!
Make a circuit with 74LSxx (xx mean any number, not necessary to be 2 digit), so that when inputting a 5-bit number k bwtween 1 to 31 (or 0 to 30 if 0-based), output the ASCII of the kth char in Programming Puzzles & Code Golf (31 chars). You don't need to handle the only invalid input. Also you ...
Precisely. We only recently moved to C++11. Plus no-one has dared maintain the OpenGL renderer
yet it looks so much nicer and is so much faster
also. it turns out the only reason the renderer was crashing was due to a memset. Guess what the memset was for? Clear a rectangle. Guess what was just after it? gl->clearRect
@Poke heh. There's a lot of interactions and tricks normal users know nothing about. Proof: Subframe electronics (abusing the way the game processes particles to perform large amounts of operations (in the form of ingame electronics) within a single frame. Has been used to build functioning computers that do 1 cycle per tick)
@Dennis I should have expressed myself better. I didn't mean write their own crypto from scratch. Just don't download goddamn gpg.exe to make your malware usable, ffs
I'm sorry, but no. It will fail on answer number 10 if I increase the limit. Also, it's 5 times in total, not 5 times per character, so it's even stricter then you assumed. Sorry! — Stewie Griffin2 hours ago
@DJMcMayhem PowerShell, 21 bytes -- $args[0]|?{$_-eq$i++}Try it online! 0-based. Returns nothing (a falsey value) or a non-empty array (a truthy value).
A palindrome is some string that is spelled the same way both backwards and forwards. For instance, 'Eva, can I stab bats in a cave?' is a palindrome (EVACANISTAB | BATSINACAVE)
For this code golf, using the language of your choice, determine if a given string is a palindrome or not.
Edge Case...
> Punctuation is not counted towards palindrominess. Control characters are not counted towards palindrominess. Whitespace is not counted towards palindrominess. Case in this challenge is not counted towards palindrominess.
@Pavel Interestingly, a lot of people seem to misunderstand APL's =. It is exactly like its brethren <≤≥>≠. It is not assignment (←) neither is it equivalence (≡).
@J.Sallé Yes.
@Pavel Actually, it is not just element-wise, (that'd be ≡¨) it is scalar, so it penetrates all the way through nested structures, just like + and -.
Anyone know of a good resource on pressurized fluid/air simulation? (Just simulating pressure and velocity) I'm going to, as a secondary project (because it makes sense, i'm already working on finishing the game's unfinished OpenGL renderer (to replace the old software renderer)) try and replace TPT's air sim with a GPU computed one as a optional feature.
@quartata No f⍤0 and f¨ just applies f to each scalar in the argument(s), but so called scalar functions (mainly the arithmetic ones) apply all the way down at the leaf nodes of the argument(s) while extending scalars as needed.
I wanted to target being able to work with large integers and doing manual bit operations (very few languages have carryless multiplication, and many can only do carryless modulo with fixed dividends for CRC)
Also, I want to encourage people to figure out means of concisely doing this in all languages, not just ones where bignums and finite field operations exist
@cairdcoinheringaahing it's even better when you automatically add accents and tildes to your code's comments because you're used to doing it and Jenkins doesn't build it.
Yes, the zero byte in UTF8 is code point 0, NUL. There is no other Unicode code point that will be encoded in UTF8 with a zero byte anywhere within it.
The possible code points and their UTF8 encoding are:
Range Encoding Binary value
----------------- -------- ------------------...