@Downgoat Well that's fine. Just realize that this has transcended beyond INI into your own config format which is exponentially more effort then just slapping yaml/json/something people already know how to use and calling it a day
Your task is to build a natural number using the fewest number of ones and only the operators + or -. For example, the number seven can be written 1+1+1+1+1+1+1=7, but it can also be written as 11-1-1-1-1=7. The first one uses 7 ones, while the latter only uses 6. Your task is to return the minim...
Ok. So I'm writing a BF interpreter. Let's say I have a variable dp that determines what index of my cells array I'm pointing at. < goes to {dp--}, > to {dp++; cells.push(0)}. Right? Now, if I switched it so < is {cells.unshift(0)} and > is {dp--}, would that still do the same thing?
Pyth, 86 bytes, full program
=N.tE7=Z*6*.n0cEl.n'zMmhtS[0255ss*VG.>+Lc-1.tH1 3[.tH1Kc.tH0@3 2_K)d)3.wmmgk~-NZd'z
Pyth doesn't have built-in color space conversions - this is the real deal.
Takes input in the following format on stdin:
input_filename.png
offset
cycles
The output image is wr...
Quick! Someone find me a unicode character that is not already used in pretzel and is not idiotic (like 2) and makes some degree of sense for a doubling function (x -> 2*x)! The prize is a free pretzel!
and limits the challenge only to languages (or libraries for those languages) that handle image I/O
why can't I just write a function that takes an array of pixel values, a width, a height, offset and cycles, and returns an array of pixel values that are rainbowified?
I'm writing my answer in Python, and if I can't do that then more than 50% of my answer is just image format I/O
@orlp This issue comes up in lots of challenges. Allowing people to choose their most optimally convenient i/o formats can get confusing and contentious. The idea here is that at least a common image file format can be easily opened in an image viewer
@QPaysTaxes but I also did convince my parents to let me go to school late to get more rest and have time to eat more than half of a bowl of cereal for breakfast.