Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
What ascii values of characters are being used for this implementation of BF? Does not seem to be the same as that for some other online interpreters I've found..
Edit: I see my error.. My follow-up question: do integers in tests have leading zeroes?
I had a dream that somebody told me "You shouldn't try and write Brainfuck programs without a visualiser!". So I did this with a visualiser and it really did help with getting the loops right.
Me
Oh? Who approved it?
.
It looks like it, yes.
Is it resolved now?
As discussed on Discord, leading zeroes are valid for numerical literals. My rust translation (above) adds this information to the description.
Rust translation ready for review.
Note: it updates the description.
.
The description doesn't clearly specify whether
01
(number with leading 0) is considered a valid numeric literal or not. Python translation will considerf(01)
a valid function expression, although based on test generation, it isn't really meant to.Python sample tests do not use the new test framework.
Python test coverage is insufficient; it allows solutions which naively interpret an expression like
"{1a}{1a}"
as lambdas with 2 names (1
,a
) to pass, instead of rejecting the input as having an invalid name/number as per the spec.I can read that sentence over and over and still get mind-f*cked
Loading more items...