dude actually im staring at my code and like i see what is wrong (it go 0+1, (0+1)+2, (0+1+2)+3, (0+1+2+3)+5, (0+1+2+3+5)+8, and so on), so maybe i dont start with 0 and 1. but then idk what i can starting with ahhhhh
@DannyuNDos ermmmmmm this a bit awkward, but theres literally a deleted answer with that exact code and some comments saying its wrong in that deleted answer
@JPeroutek Radiation hardening is to vague to say for sure. Byte removal is a common but not the only "radiation". I would guess "Yes" but it depends on the wording of the challenge.
ooh wait a fucking minute i think maybe i need to start at -1 1, cuz then 1 0, 0 1, 1 1, 1 2, 2 3, 3 5, and so on. result is 1 0 1 1 2 3 5... cumulative sum 1 1 2 3 5 8 13... exactly whats needed
Piet + ascii-piet, 53 bytes (15×7=105 codels), no header/footer
ttlddtN ub?fnNssSkKCVrTtTLcfkdtlElt?l??T lL sdD S??
Output as unary.
Try Piet online!
Try Piet online! x2
Try Piet online! x3
Try Piet online! x5
Try Piet online! x10
This is so bad but my brain is completely fried rn, this will ...
ayyy lets go
my brain is actually mush rn
i thought it wouldnt be too hard at first but the number keep coming out wrong
bubbler probably gonna come out with some 30 byte answer after seeing this now lmao
i wonder if i should even try to put an explanation there so maybe other ppl can see some golfs
hmm maybe i should do a vertical loop instead of a horizontal one to output the 1's, was trying to do smth like this thinking it would save bytes but now looking at it im not too sure about that
i think mainly becuz the DP+ isnt at A1->A2 but instead further into the loop, which make some black codels
eh too lazy to think about it now
wait maybe i should print before doing the adding/swapping logic
I’m referencing a joke that people used to annoy each other with when I was a kid (though of course it was spelled Pete and Repeat). The idea was that the other person would answer “Repeat” and then you’d just repeat yourself
if u look at my code i was tryna take inspiration from other ppls codes that have comments, so the first two line to the right i have is ran once but ignored for the rest of the time, 1 0 roll is so much smarter tho
Could it be a possible chess move?
code-golf decision-problem chess
Backstory
Professor Chesster has a library of chess puzzles with solutions, but a meteor has struck (not real, I promise) and now their hard drive may be corrupted! Luckily, Professor Chesster's puzzle FENs are stored securely, b...
# Summary Check if a move inputted with algebraic notation could be valid. Return a truthy value if it is, and a falsy value otherwise
In this case the server wouldn't even know the password at all so couldn't hash it
In client-side hashing, password is never sent. Server doesn't know it. If the client doesn't hash according to the specifications they are only hurting their own security
Client can choose to use a different hashing algorithm than the server expects but the server has no way of knowing
I don't know about directory services specifically, just how authentication over internet usually works. I guess you can use a private key but that's not what the diagram suggests
Could it be a possible chess move?
code-golf decision-problem chess
Backstory
Professor Chesster has a library of chess puzzles with solutions, but a meteor has struck (not real, I promise) and now their hard drive may be corrupted! Luckily, Professor Chesster's puzzle FENs are stored securely, b...
Bump
Summary: Check if a move inputted with algebraic notation could be valid. Return a truthy value if it is, and a falsy value otherwise
As the title says, given a valid chess move in algebraic notation, produce the string describing the move.
Example:
fxg8=Q+ -> Pawn takes g8 promotes to Queen check
Bb7# -> Bishop to b7 mate
Here is a list of all the keywords and their respective notation
R -> Rook x -> ta...
Make a braille cribbage board
The braille characters lie in the range U+2800 (⠀) to U+28FF (⣿), making it a SBCS (Single Byte Character Set). Oddly enough, the braille patterns look a lot like holes in a cribbage board. Here is an image of one of the many cribbage boards for reference:
So you mu...
Problem
You're a staircase engineer on a house and realize you only have n rectangles to create a staircase. So you are tasked with finding the number of ways to use n rectangles to tile a stairstep shape for the architects.
Your task is to write a program that takes a non-negative integer n as i...
@cairdcoinheringaahing This explains a lot, but I think it may be causing some issues – recently I spent a couple of days writing an answer over 30KB long, and it got upvoted less than two minutes after being posted. Presumably that's because an upvote is one way to clear a review task? But there seems to be a real risk of, e.g., upvoting incorrect answers if people upvote before fully reading them.
out of interest, do all my answers trigger review tasks? or is it only the answers on questions that are more than X days old, or that are particularly short or long?
@RydwolfPrograms there are occasions where I've misunderstood the spec, and the answer usually gets upvoted out of habit anyway before someone (often me) realises it's wrong
in my first answer for the FGITW post experiment, I accidentally posted a snippet rather than a function; nobody noticed until I fixed it somewhat later
it is at least usually easily fixable (the question in question was source-layout, making it potentially nontrivial to fix, but luckily the fix happened to be easy)
Personally I decide to vote based on the cleverness of the important part of the code, even if someone gets the I/O so egregiously wrong I bother leaving a comment, that won't change how I vote
Ah if it was restricted source or source layout that might change things a little bit yeah
I am still working on that TC-subsets-of-Jelly answer: finding new techniques for proving things TC is one of my hobbies, and it is doing wonders for suggesting directions for improving those techniques
golfing languages make concessions to practicality / the real world in ways that tarpits don't, and that in turn means that you get some subsets with some really weird restrictions (such as the base conversion operators working only in base 10)
oh, this is leading to another problem: I am getting close to the answer length limit, does anyone have suggestions for presenting the answer in a way that will fit within 64KiB?
one idea I've had is to post the relevant proofs on Esolang (or Wikipedia, if they were done by someone else and thus are acceptable there) so that they don't have to be contained within the post
I have already taken to editing the answer in an external editor, rather than directly on Stack Exchange, because it struggles with rendering 50KB worth of Markdown on every keystroke :-)
the hard limit in Jelly appears to be 15, assuming I haven't missed any relevant builtins – I could only find 15 different ways to create an infinite loop
I've been wondering if it's possible to do bitwise cyclic tag (or a variant of that) with just arithmetic on binary numbers (ideally without using a logarithm builtin)
I already have a working implementation of 256-Echo Tag using ⁹¹Hƭ€&xŒrṙß, but haven't posted it yet beacause 256-Echo Tag has not actually been proved Turing-complete (although it almost certainly is) – there's a compiler from tag systems but it doesn't fit within length 256
so I'm going to need to do some proving in order to get that answer posted
it's Blindfolded Arithmetic that used up most of it, and I may need to remove that to split the arithmetic operators up
I already have ~Ḥ planned as a way to make arbitrary integer constants once I've run out of digits
although I haven't figured out what to use that for yet
so that uses up one of the bitwise operators, and the Echo Tag implementation uses up &
XOR is still available and probably is usable for something
by the way, if you're looking for tag-like Turing-complete systems that work purely arithmetically, see Spiral Rise, although it doesn't map onto Jelly very well
Minimal number of jumps to reach a square
code-golf
Given a Knight current square in a chess board and an array of unavailable squares, calculate the minimum number of jumps required to reach the target square.
Input
Knight square, array of unavailable squares, target square. Input might look lik...
Interesting, although it's a shame its builtins don't work well with golfing languages. You could potentially use a base conversion builtin for that last one, but you've found better uses for those
I still have one left! although I'm planning to use it to create a list literal rather than for computation (although maybe it's usable for both?)
also I discovered that ṣ can split an integer into its digits, like D does – it's a little janky but having a second D is probably going to be very helpful
finding a way to do halting is often one of the hardest parts, e.g. the Echo Tag implementation exploits a bug in the run-length encoder (it crashes when given an empty list, so I run-length encode and decode the list as a way to exit the program when the list empties)
I wonder if there's some construction for Turing-Completeness that relies entirely on checking the properties of a number (then # could be used without data storage)
I might do it anyway, though, I have both of ḃ and y left, the hard part is just creating the data structure that y looks into
right, it's most of a tag system already (although it doesn't need a queue, which is a big advantage over tag systems when you run low on list manipulation builtins)
the idea is to use the Post correspondence problem
convert a number into digits in some base (ideally bijectively), map those digits onto substrings in two different ways, flatten both ways, are they equal?
also it doesn't matter whether your requirement to repeat is "same value seen twice, possibly with other values in between" or "same value seen twice in a row" (although in most golfing languages the former is easier to implement, and it's also a somewhat easier situation to brnig about)
@emanresuA that's totally fine – but I have a self-imposed restriction on this one
actually one of the harder parts is just writing a nontrivial example program that halts to test the construction with :-D
especially when the halt requirement is someting awkward, like setting the internal value to 0 in Addition Automaton
Stevin's Notation is a way to represent decimals in a non-fractional way.
The Flemish mathematician and engineer Simon Stevin is
remembered for his study of decimal fractions. Although he was not the
first to use decimal fractions (they are found in the work of the
tenth-century Islamic mathemat...