Ad
  • Custom User Avatar

    Changed it to include 2 left movement, not 1.

  • Custom User Avatar

    which you came up with, remember? Good point about the example.

  • Custom User Avatar

    I've got plenty of ideas that are not duplicates. However, if you can't solve most of my BF katas, I think you are gonna need to think for a bit on those. Stay tuned.

  • Custom User Avatar

    We don't have to worry about state, the star is used correctly here, if I understand what your concern is

  • Custom User Avatar

    Finally a YurichBRO kata that even I can solve :-) Thanks for the fun.

    I hope you can indeed create more installments in this series without duplication of existing kata. I would look forward to that.

  • Custom User Avatar

    I was only talking about the use of * used here:

    It does this based on the current rule*, and the bit at the current position

    not about any of the actual language.

  • Custom User Avatar

    The example only handles moving to the right and is a little confusing, I would consider showing at least one move to the left that affects the output.

    Good white kata!

  • Custom User Avatar

    It was supposed to be "state", not "rule". Changed to state. Given that the 3 things listed are clearly not states, this is not confusing anymore.

  • Custom User Avatar

    the last thing sounds better, changed to that.

  • Custom User Avatar

    Different rules.

    Turing machines have multiples states, all of which can have different rules that are a combination of the three rules as in this kata.

    Maybe call them "state rule sets"?

  • Custom User Avatar

    I find it educational to know that there are three rules, so I'm fine with being instructed to only follow one of them.

    ... it just needs a different syntax for clarity's sake.

  • Custom User Avatar

    there's effectively one rule. so do we need to worry about rules, or not? I honestly don't have an answer.

  • Custom User Avatar

    this key makes sense given the intended use for the '*' char:

    * = we don't worry about these in this kata

    however, there is the just previous sentence that does have a '*' char in it:

    It does this based on the current rule*, and the bit at the current position

    which is slightly misleading if the rule is something we need to worry about

  • Custom User Avatar

    return a string of 1s and 0s at the position of the head on each step

    You could make that

    "return a string of 1s and 0s at the position of the head at the beginning of each step"

  • Custom User Avatar

    better. the word "atomically" comes to mind ( any future plans for multiple read heads on a single tape? ), but you don't have to use that.

    ( some ) people tend to stop reading when the examples start, so the current ordering eems less than ideal. but that's a different issue.

  • Loading more items...