Ad
  • Custom User Avatar

    I appreciate the response, no worries on the delay -- I was able to figure out what was going on and adjusted. I hope the exchange will help anyone else who runs into the issue and in general might give a bit more insight into what is being tested and how to structure potential processes.

    I will simply point out (for anyone else who reads this as they are attemping to solve) that the results/expected results print-out of the self.atoms doesn't print-out an atom if it is a hydrogen. A fact that makes sense for all the hydrogens that fill in the molecule at the end (I understand the reasoning to save space), but was a bit confusing as there are some hydrogens that intentionally exist in the molecule through the methods add/chain/mutate -- and those atoms exist in the self.atoms even before closer, but they DON"T return in the print-out of results/expected results.

  • Custom User Avatar

    So, I figured out what was happening -- and Im still not sure this is correct, because the instructions are a bit nebulous here. I was reordering the atom.ids upon running the closing method, thereby pushing all hydrogens (even those explicitly added/mutated) to the end during the CLOSING method. The instructions/behaviors are not clear WHEN that shoud happen -- the only statement I found was that during the unlock method, after removal of the hydrogens, "The id numbers of the remaining atoms have to be continuous AGAIN" -- which I read as if they are continuous AGAIN then by definition they should have been continuous BEFORE. But I suppose the atom.ids could have been continuous, but it appears that the output of the check method (which compares the solution object to the test object) doesn't seem to print H atoms (which in theory it could, it doesn't appear apart of the limitations of the atom.object str print. Anyway ....

  • Custom User Avatar

    Ive encountered a problem. Ive done well figuring out and working through the various requirements needed to pass. But now Im seeing something strange -- Im almost through the full tests, but I am getting results that tell me I should be getting something else BUT the printout from the expected results has errors(!!) I know, I know, that can't be, look at all the people that have already solved this kata (in Python). But none-the-less I see errors.

    I went through the print-out of the Atoms[] in the expected results and the atom.ids from the expected results HAVE GAPS -- meaning it skips over #88 and then #90 (on one particular example). But the instructions specifically say that the atom.ids should be contiguous. Mine are, and thus they don't match the "expected results".

    At first I thought maybe the two were switched (the labeling on "my results" and the "expected results"), so I went back and fed some non-sense in on mine, and in fact they are in the right order. So why are there gaps in the atom.ids in the "expected results" when the instructions say they should be contiguous ???

    I took screen shots, I can show the print-out -- it seems a bit much to paste here (although I suppose I could). Im not sure whats going on

  • Custom User Avatar

    In python I had to switch the order of (key, answers) in the solution setup because it doesn't match the order for those two given in the test cases

  • Custom User Avatar

    I did not know the order, obviously. I appreciate the info.

    Done

  • Custom User Avatar

    Javascript translation posted

  • Custom User Avatar

    Javascript translation posted

  • Custom User Avatar

    PHP translation posted

  • Custom User Avatar
  • Custom User Avatar

    PHP translation posted, pending approval

  • Custom User Avatar

    "with out" ??
    It doesn't use any reverse list

  • Custom User Avatar

    You don't "roll" the wheel .... you SPIN it :-)

  • Custom User Avatar

    The instructions to the Python version of this kata should be more clear. The way the empty nodes are provided, and subsequently the results analyzed, is completely different from any of the previous kata in this series. Yes, it can be figured out, but making a puzzle out of the process of analyzing results is not the intent in learning programming --

    thats more like the intent of my employer ...

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Loading more items...